Problem: CoreDNS getting preempted by other pods

Solution: Set priorityClassName to system-node-critical of traefik, metrics-server, local storage and coredns deployment
Signed-off-by: transhapHigsn <fet.prashantsingh@gmail.com>
pull/2551/head
transhapHigsn 2020-11-20 04:13:49 +05:30 committed by Brad Davidson
parent 27e64c72a1
commit 87a43c69e1
5 changed files with 8 additions and 4 deletions

View File

@ -95,6 +95,7 @@ spec:
labels: labels:
k8s-app: kube-dns k8s-app: kube-dns
spec: spec:
priorityClassName: "system-cluster-critical"
serviceAccountName: coredns serviceAccountName: coredns
tolerations: tolerations:
- key: "CriticalAddonsOnly" - key: "CriticalAddonsOnly"

View File

@ -50,6 +50,7 @@ spec:
labels: labels:
app: local-path-provisioner app: local-path-provisioner
spec: spec:
priorityClassName: "system-node-critical"
serviceAccountName: local-path-provisioner-service-account serviceAccountName: local-path-provisioner-service-account
tolerations: tolerations:
- key: "CriticalAddonsOnly" - key: "CriticalAddonsOnly"

View File

@ -22,6 +22,7 @@ spec:
labels: labels:
k8s-app: metrics-server k8s-app: metrics-server
spec: spec:
priorityClassName: "system-node-critical"
serviceAccountName: metrics-server serviceAccountName: metrics-server
tolerations: tolerations:
- key: "CriticalAddonsOnly" - key: "CriticalAddonsOnly"

View File

@ -16,6 +16,7 @@ spec:
kubernetes: kubernetes:
ingressEndpoint: ingressEndpoint:
useDefaultPublishedService: true useDefaultPublishedService: true
priorityClassName: "system-cluster-critical"
image: "rancher/library-traefik" image: "rancher/library-traefik"
tolerations: tolerations:
- key: "CriticalAddonsOnly" - key: "CriticalAddonsOnly"

File diff suppressed because one or more lines are too long