【k8s】一些问题记录

  • 集群加入token遗忘或过期

 执行命令:kubeadm token create --print-join-command

  • 修改默认的namespace

kubectl config set-context --current --namespace=kubeflow

  • 开启匿名访问

kubectl create clusterrolebinding cluster-system-anonymous --clusterrole=cluster-admin --user=system:anonymous

原文地址:https://www.cnblogs.com/zhouwenyang/p/15330352.html