mirror of https://github.com/k3s-io/k3s
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
parent
27e64c72a1
commit
87a43c69e1
|
@ -95,6 +95,7 @@ spec:
|
|||
labels:
|
||||
k8s-app: kube-dns
|
||||
spec:
|
||||
priorityClassName: "system-cluster-critical"
|
||||
serviceAccountName: coredns
|
||||
tolerations:
|
||||
- key: "CriticalAddonsOnly"
|
||||
|
|
|
@ -50,6 +50,7 @@ spec:
|
|||
labels:
|
||||
app: local-path-provisioner
|
||||
spec:
|
||||
priorityClassName: "system-node-critical"
|
||||
serviceAccountName: local-path-provisioner-service-account
|
||||
tolerations:
|
||||
- key: "CriticalAddonsOnly"
|
||||
|
|
|
@ -22,6 +22,7 @@ spec:
|
|||
labels:
|
||||
k8s-app: metrics-server
|
||||
spec:
|
||||
priorityClassName: "system-node-critical"
|
||||
serviceAccountName: metrics-server
|
||||
tolerations:
|
||||
- key: "CriticalAddonsOnly"
|
||||
|
|
|
@ -16,6 +16,7 @@ spec:
|
|||
kubernetes:
|
||||
ingressEndpoint:
|
||||
useDefaultPublishedService: true
|
||||
priorityClassName: "system-cluster-critical"
|
||||
image: "rancher/library-traefik"
|
||||
tolerations:
|
||||
- key: "CriticalAddonsOnly"
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue