Commit 87a43c69 authored by transhapHigsn's avatar transhapHigsn Committed by Brad Davidson

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: 's avatartranshapHigsn <fet.prashantsingh@gmail.com>
parent 27e64c72
...@@ -95,6 +95,7 @@ spec: ...@@ -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"
......
...@@ -50,6 +50,7 @@ spec: ...@@ -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"
......
...@@ -22,6 +22,7 @@ spec: ...@@ -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"
......
...@@ -16,6 +16,7 @@ spec: ...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment