haproxytech / helm-charts

Helm chart for HAProxy Kubernetes Ingress Controller
Apache License 2.0
155 stars 121 forks source link

nodeselector not working as expected #223

Closed Nurlan199206 closed 9 months ago

Nurlan199206 commented 9 months ago

can't helm installon specific nodes

i've labeled node as role: infra but pods running on all nodes

helm install haproxy-kubernetes-ingress haproxytech/kubernetes-ingress \
--create-namespace \
--namespace haproxy-controller \
--set controller.ingressClass=null \
--set controller.service.nodePorts.http=30000 \
--set controller.service.nodePorts.https=30001 \
--set controller.service.nodePorts.stat=30002 \
--set nodeSelector.role=infra
dkorunic commented 9 months ago

@Nurlan199206 Pod Node assignment nodeSelector belongs under controller block, meaning the correct syntax would be to use ---controller.nodeSelector.role=infra