Skip to content

Commit 192f580

Browse files
committed
chore: Support Hostnetwork
Signed-off-by: kahirokunn <[email protected]>
1 parent d8ee016 commit 192f580

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

helm/templates/deployment.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,13 @@ spec:
131131
priorityClassName: {{ .Values.deployment.priorityClassName }}
132132
{{ end -}}
133133
hostIPC: false
134-
hostNetwork: false
135134
hostPID: false
135+
{{ if .Values.hostNetwork }}
136+
hostNetwork: true
137+
dnsPolicy: ClusterFirstWithHostNet
138+
{{ else }}
139+
hostNetwork: false
140+
{{ end }}
136141
{{ if .Values.aws.credentials.secretName -}}
137142
volumes:
138143
- name: {{ .Values.aws.credentials.secretName }}

helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ deployment:
2828
# Which priorityClassName to set?
2929
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority
3030
priorityClassName: ""
31+
hostNetwork: false
3132

3233
# If "installScope: cluster" then these labels will be applied to ClusterRole
3334
role:

0 commit comments

Comments
 (0)