Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa00afe

Browse files
authored
Merge pull request kubernetes#73649 from ojmhetar/coredns-priorityclass
Add priority class to CoreDNS pods
2 parents f507343 + ebb5b94 commit aa00afe

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

cluster/addons/dns/coredns/coredns.yaml.base

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ spec:
106106
annotations:
107107
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
108108
spec:
109+
priorityClassName: system-cluster-critical
109110
serviceAccountName: coredns
110111
tolerations:
111112
- key: "CriticalAddonsOnly"

cluster/addons/dns/coredns/coredns.yaml.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ spec:
106106
annotations:
107107
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
108108
spec:
109+
priorityClassName: system-cluster-critical
109110
serviceAccountName: coredns
110111
tolerations:
111112
- key: "CriticalAddonsOnly"

cluster/addons/dns/coredns/coredns.yaml.sed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ spec:
106106
annotations:
107107
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
108108
spec:
109+
priorityClassName: system-cluster-critical
109110
serviceAccountName: coredns
110111
tolerations:
111112
- key: "CriticalAddonsOnly"

cmd/kubeadm/app/phases/addons/dns/manifests.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ spec:
4343
labels:
4444
k8s-app: kube-dns
4545
spec:
46+
priorityClassName: system-cluster-critical
4647
volumes:
4748
- name: kube-dns-config
4849
configMap:
@@ -235,6 +236,7 @@ spec:
235236
labels:
236237
k8s-app: kube-dns
237238
spec:
239+
priorityClassName: system-cluster-critical
238240
serviceAccountName: coredns
239241
tolerations:
240242
- key: CriticalAddonsOnly

0 commit comments

Comments
 (0)