Browse Source
fix: redeploy coredns and nodelocaldns when its config changed (#12401)
pull/12517/head
Kim Hyunyoung, Abel
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
3 additions and
0 deletions
-
roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2
-
roles/kubernetes-apps/ansible/templates/nodelocaldns-daemonset.yml.j2
-
roles/kubernetes-apps/ansible/templates/nodelocaldns-second-daemonset.yml.j2
|
@ -23,6 +23,7 @@ spec: |
|
|
k8s-app: kube-dns{{ coredns_ordinal_suffix }} |
|
|
k8s-app: kube-dns{{ coredns_ordinal_suffix }} |
|
|
annotations: |
|
|
annotations: |
|
|
createdby: 'kubespray' |
|
|
createdby: 'kubespray' |
|
|
|
|
|
checksum/config: "{{ lookup('template', 'coredns-config.yml.j2') | checksum }}" |
|
|
spec: |
|
|
spec: |
|
|
securityContext: |
|
|
securityContext: |
|
|
seccompProfile: |
|
|
seccompProfile: |
|
|
|
@ -17,6 +17,7 @@ spec: |
|
|
annotations: |
|
|
annotations: |
|
|
prometheus.io/scrape: 'true' |
|
|
prometheus.io/scrape: 'true' |
|
|
prometheus.io/port: '{{ nodelocaldns_prometheus_port }}' |
|
|
prometheus.io/port: '{{ nodelocaldns_prometheus_port }}' |
|
|
|
|
|
checksum/config: "{{ lookup('template', 'nodelocaldns-config.yml.j2') | checksum }}" |
|
|
spec: |
|
|
spec: |
|
|
nodeSelector: |
|
|
nodeSelector: |
|
|
{{ nodelocaldns_ds_nodeselector }} |
|
|
{{ nodelocaldns_ds_nodeselector }} |
|
|
|
@ -17,6 +17,7 @@ spec: |
|
|
annotations: |
|
|
annotations: |
|
|
prometheus.io/scrape: 'true' |
|
|
prometheus.io/scrape: 'true' |
|
|
prometheus.io/port: '{{ nodelocaldns_secondary_prometheus_port }}' |
|
|
prometheus.io/port: '{{ nodelocaldns_secondary_prometheus_port }}' |
|
|
|
|
|
checksum/config: "{{ lookup('template', 'nodelocaldns-config.yml.j2') | checksum }}" |
|
|
spec: |
|
|
spec: |
|
|
nodeSelector: |
|
|
nodeSelector: |
|
|
{{ nodelocaldns_ds_nodeselector }} |
|
|
{{ nodelocaldns_ds_nodeselector }} |
|
|