mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-12 11:57:39 -02:30
fix: redeploy coredns and nodelocaldns when its config changed (#12401)
This commit is contained in:
committed by
GitHub
parent
c03c68e8c7
commit
66cab15498
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user