diff --git a/home/docs/help/kubernetes.md b/home/docs/help/kubernetes.md index 54a0b57c5a3..9700168e620 100644 --- a/home/docs/help/kubernetes.md +++ b/home/docs/help/kubernetes.md @@ -27,9 +27,15 @@ kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin -- kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' kubectl describe secret {secret} -n kube-system ``` +#### 方式二: +``` +kubectl create serviceaccount cluster-admin +kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-admin --serviceaccount=default:cluster-admin +kubectl create token --duration=1000h cluster-admin +``` ### 配置参数 | 参数名称 | 参数帮助描述 |