Hi everyone, I'm trying to get some node labels po...
# kubernetes
n
Hi everyone, I'm trying to get some node labels populated, specifically topology.kubernetes.io/region and topology.kubernetes.io/zone and such. The cluster is RKE2 (managed by Rancher) and is provisioned via AWS EC2 provider. What's the way to achieve this?
c
where do you want them to come from?
If you want them to come from AWS automatically, then you should be deploying the AWS cloud-controller-manager chart, and disabling the RKE2 built-in cloud provider.
n
This might be naive of me, but I was under the impression that the AWS provider would attach the labels when provisioning the nodes.
I will look into the cloud-controller-manager chart, thanks.
c
no, the topology labels are set by the CCM. Not the node provisioner.
n
Just for the sake of completeness, when you said "where do you want them to come from?", what might've been the other options for automatic region/zone labelling?
c
I mean like, do you want to set them manually via node labels? do you want rancher to set them for you somehow?
n
Ah I see, yeah. Setting them manually is not really feasible in a dynamic environment. I thought Rancher might set them for me somehow, but from what you previously said I think the ccm is "the way to do it".
Now I just need to figure out how to deploy all that correctly :)