mirror of
https://github.com/rancher/rke.git
synced 2025-05-11 01:45:00 +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:
|
||||
name: rke-deploy
|
||||
spec:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: beta.kubernetes.io/os
|
||||
operator: NotIn
|
||||
values:
|
||||
- windows
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/controlplane
|
||||
operator: Exists
|
||||
effect: NoSchedule
|
||||
- key: node-role.kubernetes.io/etcd
|
||||
operator: Exists
|
||||
effect: NoExecute
|
||||
- operator: Exists
|
||||
hostNetwork: true
|
||||
serviceAccountName: rke-job-deployer
|
||||
nodeName: {{$nodeName}}
|
||||
|
Loading…
Reference in New Issue
Block a user