mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 20:36:39 +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
|
|
@ -16,7 +16,9 @@ EXAMPLES
|
|||
|
||||
$ gcloud beta container backup-restore restores create my-restore \
|
||||
--project=my-project --location=us-central1 \
|
||||
--restore-plan=my-restore-plan
|
||||
--restore-plan=my-restore-plan \
|
||||
--backup=projects/my-project/locations/us-east1/backupPlans/\
|
||||
my-backup-plan/backups/my-backup
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Restore resource - Name of the restore to create. Once the restore is
|
||||
|
|
|
|||
|
|
@ -52,7 +52,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:
|
||||
|
|
@ -61,9 +61,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 beta 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
|
||||
|
|
|
|||
|
|
@ -52,7 +52,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:
|
||||
|
|
@ -61,9 +61,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 beta 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