support CoreDNS use host network and config dns port (#10617)

This commit is contained in:
刘旭
2023-11-17 21:41:53 +08:00
committed by GitHub
parent f46910eac3
commit bc5b38a771
4 changed files with 8 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ spec:
annotations:
createdby: 'kubespray'
spec:
hostNetwork: {{ coredns_host_network | default(false) }}
securityContext:
seccompProfile:
type: RuntimeDefault
@@ -75,10 +76,10 @@ spec:
- name: config-volume
mountPath: /etc/coredns
ports:
- containerPort: 53
- containerPort: {{ coredns_port }}
name: dns
protocol: UDP
- containerPort: 53
- containerPort: {{ coredns_port }}
name: dns-tcp
protocol: TCP
- containerPort: 9153