Skip to content

Commit 7c209ee

Browse files
kahirokunna-hilaly
andcommitted
chore: Support Hostnetwork and DnsPolicy
Co-authored-by: kahirokunn <[email protected]> Co-authored-by: Amine <[email protected]>
1 parent 5e27da3 commit 7c209ee

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

templates/config/controller/deployment.yaml.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@ spec:
7979
terminationGracePeriodSeconds: 10
8080
serviceAccountName: {{ .ServiceAccountName }}
8181
hostIPC: false
82-
hostNetwork: false
8382
hostPID: false
83+
hostNetwork: false
84+
dnsPolicy: ClusterFirst

templates/helm/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ spec:
141141
priorityClassName: {{ .Values.deployment.priorityClassName }}
142142
{{ end -}}
143143
hostIPC: false
144-
hostNetwork: false
145144
hostPID: false
145+
hostNetwork: {{ .Values.deployment.hostNetwork }}
146+
dnsPolicy: {{ .Values.deployment.dnsPolicy }}
146147
volumes:
147148
{{- if .Values.aws.credentials.secretName -}}
148149
- name: {{ .Values.aws.credentials.secretName }}

templates/helm/values.yaml.tpl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ deployment:
2828
# Which priorityClassName to set?
2929
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority
3030
priorityClassName: ""
31+
# Specifies the hostname of the Pod.
32+
# If not specified, the pod's hostname will be set to a system-defined value.
33+
hostNetwork: false
34+
# Set DNS policy for the pod.
35+
# Defaults to "ClusterFirst".
36+
# Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
37+
# To have DNS options set along with hostNetwork, you have to specify DNS policy
38+
# explicitly to 'ClusterFirstWithHostNet'.
39+
dnsPolicy: ClusterFirst
3140
extraVolumes: []
3241
extraVolumeMounts: []
3342

@@ -52,7 +61,7 @@ deployment:
5261
# If "installScope: cluster" then these labels will be applied to ClusterRole
5362
role:
5463
labels: {}
55-
64+
5665
metrics:
5766
service:
5867
# Set to true to automatically create a Kubernetes Service resource for the
@@ -80,7 +89,7 @@ aws:
8089
# Secret stringData key that contains the credentials
8190
secretKey: "credentials"
8291
# Profile used for AWS credentials
83-
profile: "default"
92+
profile: "default"
8493

8594
# log level for the controller
8695
log:

0 commit comments

Comments
 (0)