mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
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 }}
|
||||
annotations:
|
||||
createdby: 'kubespray'
|
||||
checksum/config: "{{ lookup('template', 'coredns-config.yml.j2') | checksum }}"
|
||||
spec:
|
||||
securityContext:
|
||||
seccompProfile:
|
||||
|
||||
@@ -17,6 +17,7 @@ spec:
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
prometheus.io/port: '{{ nodelocaldns_prometheus_port }}'
|
||||
checksum/config: "{{ lookup('template', 'nodelocaldns-config.yml.j2') | checksum }}"
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ nodelocaldns_ds_nodeselector }}
|
||||
|
||||
@@ -17,6 +17,7 @@ spec:
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
prometheus.io/port: '{{ nodelocaldns_secondary_prometheus_port }}'
|
||||
checksum/config: "{{ lookup('template', 'nodelocaldns-config.yml.j2') | checksum }}"
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ nodelocaldns_ds_nodeselector }}
|
||||
|
||||
Reference in New Issue
Block a user