mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 12:22:03 +00:00
gcloud: Wed Aug 24 09:45:53 UTC 2022
This commit is contained in:
parent
c614d893da
commit
978ed239f6
127 changed files with 2957 additions and 251 deletions
|
|
@ -51,7 +51,7 @@ EXAMPLES
|
|||
--membership=my-cluster \
|
||||
--users=foo@example.com,\
|
||||
test-acct@test-project.iam.gserviceaccount.com \
|
||||
--role=clusterrole/cluster-admin --context=my-cluster-contex \
|
||||
--role=clusterrole/cluster-admin --context=my-cluster-context \
|
||||
--kubeconfig=/home/user/custom_kubeconfig --apply
|
||||
|
||||
Revoke mode, revoke the RBAC policy for the specified users:
|
||||
|
|
@ -60,9 +60,19 @@ EXAMPLES
|
|||
--membership=my-cluster \
|
||||
--users=foo@example.com,\
|
||||
test-acct@test-project.iam.gserviceaccount.com \
|
||||
--role=clusterrole/cluster-admin --context=my-cluster-contex \
|
||||
--role=clusterrole/cluster-admin --context=my-cluster-context \
|
||||
--kubeconfig=/home/user/custom_kubeconfig --revoke
|
||||
|
||||
The role to be granted to the users can either be cluster-scoped or
|
||||
namespace-scoped. To grant a namespace-scoped role to the users in dry run
|
||||
mode, run:
|
||||
|
||||
$ gcloud container fleet memberships generate-gateway-rbac \
|
||||
--membership=my-cluster \
|
||||
--users=foo@example.com,\
|
||||
test-acct@test-project.iam.gserviceaccount.com \
|
||||
--role=role/mynamespace/namespace-reader
|
||||
|
||||
FLAGS
|
||||
--anthos-support
|
||||
If specified, this command will generate RBAC policy file for anthos
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ EXAMPLES
|
|||
--membership=my-cluster \
|
||||
--users=foo@example.com,\
|
||||
test-acct@test-project.iam.gserviceaccount.com \
|
||||
--role=clusterrole/cluster-admin --context=my-cluster-contex \
|
||||
--role=clusterrole/cluster-admin --context=my-cluster-context \
|
||||
--kubeconfig=/home/user/custom_kubeconfig --apply
|
||||
|
||||
Revoke mode, revoke the RBAC policy for the specified users:
|
||||
|
|
@ -60,9 +60,19 @@ EXAMPLES
|
|||
--membership=my-cluster \
|
||||
--users=foo@example.com,\
|
||||
test-acct@test-project.iam.gserviceaccount.com \
|
||||
--role=clusterrole/cluster-admin --context=my-cluster-contex \
|
||||
--role=clusterrole/cluster-admin --context=my-cluster-context \
|
||||
--kubeconfig=/home/user/custom_kubeconfig --revoke
|
||||
|
||||
The role to be granted to the users can either be cluster-scoped or
|
||||
namespace-scoped. To grant a namespace-scoped role to the users in dry run
|
||||
mode, run:
|
||||
|
||||
$ gcloud container hub memberships generate-gateway-rbac \
|
||||
--membership=my-cluster \
|
||||
--users=foo@example.com,\
|
||||
test-acct@test-project.iam.gserviceaccount.com \
|
||||
--role=role/mynamespace/namespace-reader
|
||||
|
||||
FLAGS
|
||||
--anthos-support
|
||||
If specified, this command will generate RBAC policy file for anthos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue