Skip to content
Snippets Groups Projects
Unverified Commit d8a4aea9 authored by Max Gautier's avatar Max Gautier Committed by GitHub
Browse files

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

This reverts commit bc5b38a7.
parent a8f58c24
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,6 @@ coredns_ordinal_suffix: "" ...@@ -16,8 +16,6 @@ coredns_ordinal_suffix: ""
coredns_deployment_nodeselector: "kubernetes.io/os: linux" coredns_deployment_nodeselector: "kubernetes.io/os: linux"
coredns_default_zone_cache_block: | coredns_default_zone_cache_block: |
cache 30 cache 30
coredns_host_network: false
coredns_port: 53
coredns_pod_disruption_budget: false coredns_pod_disruption_budget: false
# value for coredns pdb # value for coredns pdb
......
...@@ -34,7 +34,7 @@ data: ...@@ -34,7 +34,7 @@ data:
} }
{% endfor %} {% endfor %}
{% endif %} {% endif %}
.:{{ coredns_port }} { .:53 {
{% if coredns_additional_configs is defined %} {% if coredns_additional_configs is defined %}
{{ coredns_additional_configs | indent(width=8, first=False) }} {{ coredns_additional_configs | indent(width=8, first=False) }}
{% endif %} {% endif %}
......
...@@ -24,7 +24,6 @@ spec: ...@@ -24,7 +24,6 @@ spec:
annotations: annotations:
createdby: 'kubespray' createdby: 'kubespray'
spec: spec:
hostNetwork: {{ coredns_host_network | default(false) }}
securityContext: securityContext:
seccompProfile: seccompProfile:
type: RuntimeDefault type: RuntimeDefault
...@@ -76,10 +75,10 @@ spec: ...@@ -76,10 +75,10 @@ spec:
- name: config-volume - name: config-volume
mountPath: /etc/coredns mountPath: /etc/coredns
ports: ports:
- containerPort: {{ coredns_port }} - containerPort: 53
name: dns name: dns
protocol: UDP protocol: UDP
- containerPort: {{ coredns_port }} - containerPort: 53
name: dns-tcp name: dns-tcp
protocol: TCP protocol: TCP
- containerPort: 9153 - containerPort: 9153
......
...@@ -20,11 +20,9 @@ spec: ...@@ -20,11 +20,9 @@ spec:
- name: dns - name: dns
port: 53 port: 53
protocol: UDP protocol: UDP
targetPort: "dns"
- name: dns-tcp - name: dns-tcp
port: 53 port: 53
protocol: TCP protocol: TCP
targetPort: "dns-tcp"
- name: metrics - name: metrics
port: 9153 port: 9153
protocol: TCP protocol: TCP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment