limited-eye-27484
07/15/2022, 7:35 PM-e CATTLE_HOST_LABELS='my/label=setting'
still work with Rancher 2.x? I see it mentioned in the Rancher 1.x docstall-school-18125
07/15/2022, 10:55 PMrke up
. In the cluster.yml you can add an arbitrary map of labels for each node.limited-eye-27484
07/15/2022, 10:58 PMsudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run rancher/rancher-agent:v2.6.2 --server <https://my.rancher.domain> -e CATTLE_HOST_LABELS='my/label=setting' --token nope --worker
tall-school-18125
07/15/2022, 11:03 PMlimited-eye-27484
07/15/2022, 11:04 PMtall-school-18125
07/15/2022, 11:05 PM--node-label
option https://docs.rke2.io/install/install_options/linux_agent_config/limited-eye-27484
07/15/2022, 11:05 PMtall-school-18125
07/15/2022, 11:07 PMCATTLE_NODE_LABEL
or --label
and for multiple labels pass the option more than once. other options are here https://rancher.com/docs/rancher/v2.6/en/cluster-provisioning/rke-clusters/custom-nodes/agent-options/limited-eye-27484
07/15/2022, 11:08 PMtall-school-18125
07/15/2022, 11:09 PM