k8s查询dashboard的token

#无yaml重启pod

kubectl get pod "PODNAME" -n "NAMESPACE" -o yaml | kubectl replace --force -f -

 

#查询dashboard的token

kubectl describe secrets -n kube-system `kubectl get secret -n kube-system | awk '/dashboard-admin/{print $1}'` | grep token: | awk '{print $2}'

相关文章

发表新评论