mirror of https://github.com/kubernetes/kops.git
Fix broken node selector for node termination handler
This commit is contained in:
parent
368c72b763
commit
babb13c8e2
|
|
@ -117,20 +117,18 @@ spec:
|
|||
kubernetes.io/os: linux
|
||||
spec:
|
||||
nodeSelector: null
|
||||
{{ if not UseServiceAccountExternalPermissions }}
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
{{ if not UseServiceAccountExternalPermissions }}
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: Exists
|
||||
{{ end }}
|
||||
- matchExpressions:
|
||||
{{ if not UseServiceAccountExternalPermissions }}
|
||||
- key: node-role.kubernetes.io/master
|
||||
operator: Exists
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
priorityClassName: system-cluster-critical
|
||||
serviceAccountName: aws-node-termination-handler
|
||||
securityContext:
|
||||
|
|
|
|||
Loading…
Reference in New Issue