This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
[stable/nginx-ingress] Helm install nginx-ingress with parameter controller.nodeSelector does not work #12961
Labels
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Version of Helm and Kubernetes:
Kubernetes: v1.14.0
Helm: v2.13.1
Which chart:
stable/nginx-ingress
What happened:
helm install stable/nginx-ingress \
--namespace ingress-nginx
--name nginx-ingress
--set controller.hostNetwork=true
--set controller.kind=DaemonSet
--set controller.service.type=""
--set controller.daemonset.useHostPort=true
--set controller.daemonset.hostPorts.http=80
--set controller.daemonset.hostPorts.https=443
--set controller.nodeSelector.master=true
I have labeled the 3 master with "master=true", I got the error:
Error: release nginx-ingress failed: DaemonSet in version "v1beta1" cannot be handled as a DaemonSet: v1beta1.DaemonSet.Spec: v1beta1.DaemonSetSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.NodeSelector: ReadString: expects " or n, but found t, error found in #10 byte of ...|"master":true},"serv|..., bigger context ...|rst","hostNetwork":true,"nodeSelector":{"master":true},"serviceAccountName":"nginx-ingress","termina|...
What you expected to happen:
The nginx-ingress-controller should be assigned the 3 master which labeled "master=true".
but it seems that the parameter "--set controller.nodeSelector" does not work.
How to reproduce it (as minimally and precisely as possible):
helm install stable/nginx-ingress \
--namespace ingress-nginx
--name nginx-ingress
--set controller.hostNetwork=true
--set controller.kind=DaemonSet
--set controller.service.type=""
--set controller.daemonset.useHostPort=true
--set controller.daemonset.hostPorts.http=80
--set controller.daemonset.hostPorts.https=443
--set controller.nodeSelector.master=true
Anything else we need to know:
In this case, i expect the nginx-ingress-controller only running on the 3 master, but nodes.
so I used the parameter " --set controller.nodeSelector "
The text was updated successfully, but these errors were encountered: