mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 20:36:39 +00:00
gcloud: Wed Mar 1 10:23:17 UTC 2023
This commit is contained in:
parent
7664984b79
commit
bdaa0b3cfc
230 changed files with 8963 additions and 242 deletions
60
gcloud/alpha/container/hub/namespaces/get-credentials
Normal file
60
gcloud/alpha/container/hub/namespaces/get-credentials
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
NAME
|
||||
gcloud alpha container hub namespaces get-credentials - fetch credentials
|
||||
for a membership with a particular namespace
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha container hub namespaces get-credentials NAMESPACE
|
||||
[--membership=MEMBERSHIP] [--membership-location=MEMBERSHIP_LOCATION]
|
||||
[--set-namespace-in-config=SET_NAMESPACE_IN_CONFIG]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
EXAMPLES
|
||||
Get the Connect Gateway kubeconfig for global membership MEMBERSHIP, using
|
||||
namespace NAMESPACE in the config:
|
||||
|
||||
$ gcloud alpha container hub namespaces get-credentials NAMESPACE \
|
||||
--membership=MEMBERSHIP --membership-location=global \
|
||||
--set-namespace-in-config=true
|
||||
|
||||
Get the Connect Gateway kubeconfig for global membership MEMBERSHIP:
|
||||
|
||||
$ gcloud alpha container hub namespaces get-credentials NAMESPACE \
|
||||
--membership=MEMBERSHIP --membership-location=global
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAMESPACE
|
||||
Name of the namespace for which to get access to memberships.
|
||||
|
||||
FLAGS
|
||||
--membership=MEMBERSHIP
|
||||
Membership ID to get credentials from. If not provided, a prompt will
|
||||
offer a list of memberships in the fleet.
|
||||
|
||||
--membership-location=MEMBERSHIP_LOCATION
|
||||
The location of the membership resource, e.g. us-central1. If not
|
||||
specified, defaults to global.
|
||||
|
||||
--set-namespace-in-config=SET_NAMESPACE_IN_CONFIG
|
||||
If true, the default namespace for the context in the generated
|
||||
kubeconfig will be set to the Fleet namespace (i.e. the name given as
|
||||
the positional argument in this command).
|
||||
|
||||
Otherwise, no default namespace will be set, functioning the same as
|
||||
gcloud container fleet memberships get-credentials.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
--billing-project, --configuration, --flags-file, --flatten, --format,
|
||||
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
||||
--trace-token, --user-output-enabled, --verbosity.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in alpha and might change without notice. If this
|
||||
command fails with API permission errors despite specifying the correct
|
||||
project, you might be trying to access an API with an invitation-only early
|
||||
access allowlist. This variant is also available:
|
||||
|
||||
$ gcloud beta container hub namespaces get-credentials
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue