mirror of
https://github.com/rancher/rke.git
synced 2025-08-15 13:34:36 +00:00
RKE deploy job should tolerate all taints
**Problem:** Cluster fails to come up when the nodes have taints with effect `NoExecute`. **Solution:** RKE deploy job should have tolerate all toleration to execute. And this job should be only scheduled in linux node.
This commit is contained in:
parent
3d73507880
commit
c819cae072
@ -19,13 +19,17 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
name: rke-deploy
|
name: rke-deploy
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: beta.kubernetes.io/os
|
||||||
|
operator: NotIn
|
||||||
|
values:
|
||||||
|
- windows
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/controlplane
|
- operator: Exists
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
- key: node-role.kubernetes.io/etcd
|
|
||||||
operator: Exists
|
|
||||||
effect: NoExecute
|
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
serviceAccountName: rke-job-deployer
|
serviceAccountName: rke-job-deployer
|
||||||
nodeName: {{$nodeName}}
|
nodeName: {{$nodeName}}
|
||||||
|
Loading…
Reference in New Issue
Block a user