diff --git a/charts/stable/pod-gateway/Chart.yaml b/charts/stable/pod-gateway/Chart.yaml index beac2f0a..f19041b9 100644 --- a/charts/stable/pod-gateway/Chart.yaml +++ b/charts/stable/pod-gateway/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 1.2.6 description: Admision controller to change the default gateway and DNS server of PODs name: pod-gateway -version: 5.2.0 +version: 5.2.1 kubeVersion: ">=1.16.0-0" keywords: - pod-gateway @@ -21,4 +21,4 @@ dependencies: annotations: artifacthub.io/changes: | - kind: changed - description: Upgraded `common` chart dependency to version `4.3.0`. + description: Added option to override mutated pod's DNSPolicy. diff --git a/charts/stable/pod-gateway/templates/webhook-deployment.yaml b/charts/stable/pod-gateway/templates/webhook-deployment.yaml index be8c3736..abe77e22 100644 --- a/charts/stable/pod-gateway/templates/webhook-deployment.yaml +++ b/charts/stable/pod-gateway/templates/webhook-deployment.yaml @@ -50,7 +50,7 @@ spec: # Static - --tls-cert-file-path=/tls/tls.crt - --tls-key-file-path=/tls/tls.key - - --DNSPolicy=None + - --DNSPolicy={{ .Values.DNSPolicy }} # Init container - --initImage={{ .Values.image.repository }}:{{ .Values.image.tag }} - --initImagePullPol={{ .Values.image.pullPolicy }} diff --git a/charts/stable/pod-gateway/values.yaml b/charts/stable/pod-gateway/values.yaml index 0006d9c2..510627a4 100644 --- a/charts/stable/pod-gateway/values.yaml +++ b/charts/stable/pod-gateway/values.yaml @@ -18,6 +18,11 @@ image: # It must match VXLAN_GATEWAY_IP in settings.sh DNS: 172.16.0.1 +# -- The DNSPolicy to apply to the POD. Only when set to "None" will the +# DNS value above apply. To avoid altering POD DNS (i.e., to allow +# initContainers to use DNS before the the VXLAN is up), set to "ClusterFirst" +DNSPolicy: None + # -- cluster name used to derive the gateway full name clusterName: "cluster.local"