File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ limitations under the License.
1515*/}}
1616
1717{{- if eq .Values.controller.kind "DaemonSet" }}
18+ {{- $useHostNetwork := .Values.controller.daemonset.useHostNetwork -}}
1819{{- $useHostPort := .Values.controller.daemonset.useHostPort -}}
1920{{- $hostPorts := .Values.controller.daemonset.hostPorts -}}
2021apiVersion : apps/v1
5253 {{- end }}
5354 spec :
5455 serviceAccountName : {{ template "kubernetes-ingress.serviceAccountName" . }}
55- {{- if $useHostPort }}
56+ {{- if $useHostNetwork }}
5657 hostNetwork : true
5758 {{- end }}
5859{{- if .Values.controller.imageCredentials.registry }}
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ limitations under the License.
1515*/}}
1616
1717{{- if and .Values.rbac.create .Values.podSecurityPolicy.enabled }}
18+ {{- $useHostNetwork := .Values.controller.daemonset.useHostNetwork }}
1819{{- $useHostPort := .Values.controller.daemonset.useHostPort }}
1920{{- $hostPorts := .Values.controller.daemonset.hostPorts -}}
2021apiVersion : policy/v1beta1
4142 - max : 65535
4243 min : 1
4344 rule : MustRunAs
44- {{- if $useHostPort }}
45+ {{- if $useHostNetwork }}
4546 hostNetwork : true
47+ {{- end }}
48+ {{- if or $useHostPort $useHostNetwork }}
4649 hostPorts :
4750{{- range $key, $value := .Values.controller.containerPort }}
4851 - min : {{ $value }}
Original file line number Diff line number Diff line change @@ -274,6 +274,7 @@ controller:
274274 # # Controller DaemonSet configuration
275275 # # ref: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
276276 daemonset :
277+ useHostNetwork : false
277278 useHostPort : false
278279 hostPorts :
279280 http : 80
You can’t perform that action at this time.
0 commit comments