kubepi加入集群,生成token

发布时间 2023-09-24 20:47:44作者: 渺晓

防丢失

https://www.cnblogs.com/Chinori/p/17506348.html

 

kubectl create sa kubepi-user --namespace kube-system
kubectl create clusterrolebinding kubepi-user --clusterrole=cluster-admin --serviceaccount=kube-system:kubepi-user
kubectl -n kube-system create token kubepi-user