Unverified Commit d88ce268 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #56589 from mindprince/daemon-tolerations

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add wildcard tolerations to kube-proxy - Add wildcard tolerations to kube-proxy. - Add `nvidia.com/gpu` toleration to nvidia-gpu-device-plugin. Related to #55080 and #44445. /kind bug /priority critical-urgent /sig scheduling **Release note**: ```release-note kube-proxy addon tolerates all NoExecute and NoSchedule taints by default. ``` /assign @davidopp @bsalamat @vishh @jiayingz
parents a0ed6167 ad05928c
...@@ -22,6 +22,10 @@ spec: ...@@ -22,6 +22,10 @@ spec:
- matchExpressions: - matchExpressions:
- key: cloud.google.com/gke-accelerator - key: cloud.google.com/gke-accelerator
operator: Exists operator: Exists
tolerations:
- key: "nvidia.com/gpu"
effect: "NoSchedule"
operator: "Exists"
hostNetwork: true hostNetwork: true
hostPID: true hostPID: true
volumes: volumes:
......
...@@ -107,7 +107,6 @@ spec: ...@@ -107,7 +107,6 @@ spec:
effect: "NoSchedule" effect: "NoSchedule"
- operator: "Exists" - operator: "Exists"
effect: "NoExecute" effect: "NoExecute"
#TODO: remove this toleration once #44445 is properly fixed.
- operator: "Exists" - operator: "Exists"
effect: "NoSchedule" effect: "NoSchedule"
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
......
...@@ -28,6 +28,11 @@ spec: ...@@ -28,6 +28,11 @@ spec:
hostNetwork: true hostNetwork: true
nodeSelector: nodeSelector:
beta.kubernetes.io/kube-proxy-ds-ready: "true" beta.kubernetes.io/kube-proxy-ds-ready: "true"
tolerations:
- operator: "Exists"
effect: "NoExecute"
- operator: "Exists"
effect: "NoSchedule"
containers: containers:
- name: kube-proxy - name: kube-proxy
image: {{pillar['kube_docker_registry']}}/kube-proxy:{{pillar['kube-proxy_docker_tag']}} image: {{pillar['kube_docker_registry']}}/kube-proxy:{{pillar['kube-proxy_docker_tag']}}
......
...@@ -65,6 +65,11 @@ metadata: ...@@ -65,6 +65,11 @@ metadata:
spec: spec:
{{pod_priority}} {{pod_priority}}
hostNetwork: true hostNetwork: true
tolerations:
- operator: "Exists"
effect: "NoExecute"
- operator: "Exists"
effect: "NoSchedule"
containers: containers:
- name: kube-proxy - name: kube-proxy
image: {{pillar['kube_docker_registry']}}/kube-proxy:{{pillar['kube-proxy_docker_tag']}} image: {{pillar['kube_docker_registry']}}/kube-proxy:{{pillar['kube-proxy_docker_tag']}}
......
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