Worker節(jié)點(diǎn)的ROLES并不像Master節(jié)點(diǎn)那樣顯示“master”而是顯示了<none>,這是因?yàn)樾掳惭b的Kubernetes環(huán)境Node節(jié)點(diǎn)有時(shí)候會(huì)丟失ROLES信息,遇到這種情況可以手工進(jìn)行添加祟霍,具體命令如下
kubectl label node kubenetesnode02 node-role.kubernetes.io/worker=worker
# 查看節(jié)點(diǎn)
kubectl get node