[pod-gateway] Permit overriding DNSPolicy (#1435)

This commit is contained in:
David Young 2022-02-24 11:28:11 +13:00 committed by GitHub
parent 4585ca9f66
commit 7a6f41ba9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -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.

View File

@ -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 }}

View File

@ -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"