1
0
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:
orangedeng 2019-08-28 09:09:50 +08:00 committed by Alena Prokharchyk
parent 3d73507880
commit c819cae072

View File

@ -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}}