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