mirror of
https://github.com/rancher/rke.git
synced 2025-09-17 07:30:01 +00:00
NodeSelector should specify string explicitly
Kubernetes doesn't accept any other value but string in nodeSelector, but if we specified ambiguous value like true, it's treated as a non-string like bool and then failed to create resource because of type mis-match, that's why we should make value of nodeSelector enclosed by double quotations to ensure value is always string
This commit is contained in:
committed by
Alena Prokharchyk
parent
5ff184ba1d
commit
d41abc7de4
@@ -124,7 +124,7 @@ spec:
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ range $k, $v := .NodeSelector }}
|
||||
{{ $k }}: {{ $v }}
|
||||
{{ $k }}: "{{ $v }}"
|
||||
{{ end }}
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
|
Reference in New Issue
Block a user