GKE clusterrolebinding for cluster-admin fails with permission error

前端 未结 2 457
南笙
南笙 2020-12-03 03:24

I\'ve just created a new cluster using Google Container Engine running Kubernetes 1.7.5, with the new RBAC permissions enabled. I\'ve run into a problem allocating permissio

2条回答
  •  眼角桃花
    2020-12-03 04:13

    If your kubeconfig was created automatically by gcloud then your user is not the all powerful admin user - which you are trying to create a binding for.

    Use gcloud container clusters describe --zone on the cluster and look for the password field.

    Thereafter execute kubectl --username=admin --password=FROMABOVE create clusterrolebinding ...

提交回复
热议问题