kops把node上的labels/taints都弄丟了
如果是利用kops設定的instance group來配置的kubernetes節點 有時侯會在重啟/升級後出現label/taint都消失掉的情況 原因是機器只要沒有預設到label/taint的話重啟是不會把原先的都加進去
可以透過kops>instance group中設定 以後生成的每個node上都會自動加上該label或者是taint
# 配置節點群組
kops edit ig nodes
# 把需要的label/taint加進去,注意是nodeLabels
...
spec:
nodeLabels:
spot: "false"
taints:
- dedicated=gpu:NoSchedule
- team=search:PreferNoSchedule