申明:答案仅供参考,最后得分看考官!!!
同样的答案,有人能得90多分,有人只能及格,但只要操作环境正确,最后能出正确结果,及格肯定没问题!
$ kubectl config use-context k8s
$ kubectl create clusterrole deployment-clusterrole --verb=create --resource=deployments,daemonsets.statefulsets
$ kubectl create serviceaccount cicd-token -n app-team1
$ kubectl create clusterrolebinding read-secrets-global --serviceaccount=app-team1:cicd-token --clusterrole=deployment-clusterrole
参考:RBAC鉴权
网友评论