I'm trying to ensure that my etcd pod launches on a specific node within an Availability Zone (AZ) where my persistent volume is located by setting a nodeSelector
label. I've used the following Helm command, but the etcd pod still launches on the incorrect nodes in the wrong AZ:
--set tags.etcd=true \
--set etcd.labels.nodeSelector=us-west-2a \
... \
risingwavelabs/risingwave```
I've added the `nodeSelector` label to the node and the etcd pod, but it's not being honored. What am I doing wrong?
Javier Hernandez
Asked on Mar 29, 2024
I think I've misunderstood how to use nodeSelector
. I added a label with the key nodeSelector
to the pod, but it seems that nodeSelector
is actually a field, not just a label. I need to correctly set the nodeSelector
field to match the label on the node. Here's what I found in the pod description, which shows that no node selector is currently set:
Node-Selectors: <none>```
I need to adjust my Helm command to properly set the `nodeSelector` field.