take out all labels from node
Opened this issue · 1 comments
debianmaster commented
kubectl get no | awk '{print $1}' | while read line;
do
kubectl label node $line beta.kubernetes.io/arch-;
done
debianmaster commented
typical labels
labels.txt
beta.kubernetes.io/arch-
beta.kubernetes.io/fluentd-ds-ready
beta.kubernetes.io/instance-type-
beta.kubernetes.io/os-
cloud.google.com/gke-nodepool-
failure-domain.beta.kubernetes.io/region-
failure-domain.beta.kubernetes.io/zone-
kubernetes.io/hostname-
cat labels.txt | while read label; do kubectl get no | awk '{print $1}' | while read line; do kubectl label node $line $label-; done; done;