Skip to content →

Labeling a Kubernetes Node

I am working on adding an on-prem server as one of the options for user’s to run their workloads on. My app is configured to schedule Pods on nodes with a certain label. I have a cluster installed on the on-prem server, but it doesn’t have the magic label that I want. Fortunately, I can easily add a label using kubectl.

kubectl label node NODE key=value

To overwrite a label use --overwrite

To remove a label,

kubectl label NODE key-

Published in Today I Learned