mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Wed Apr 6 08:36:53 UTC 2022
This commit is contained in:
parent
9bf28f1efe
commit
f88a614da8
221 changed files with 7174 additions and 449 deletions
76
gcloud/alpha/edge-cloud/container/clusters/get-credentials
Normal file
76
gcloud/alpha/edge-cloud/container/clusters/get-credentials
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
NAME
|
||||
gcloud alpha edge-cloud container clusters get-credentials - get
|
||||
credentials of an edge-container cluster
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha edge-cloud container clusters get-credentials
|
||||
(CLUSTER : --location=LOCATION)
|
||||
[--auth-provider-cmd-path=AUTH_PROVIDER_CMD_PATH]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Fetch credentials for a running Edge Container cluster. This
|
||||
command updates a kubeconfig file with appropriate credentials and endpoint
|
||||
information to point kubectl at a specific Edge Container cluster. By
|
||||
default, credentials are written to HOME/.kube/config. You can provide an
|
||||
alternate path by setting the KUBECONFIG environment variable. If
|
||||
KUBECONFIG contains multiple paths, the first one is used. This command
|
||||
enables switching to a specific cluster, when working with multiple
|
||||
clusters. It can also be used to access a previously created cluster from a
|
||||
new workstation. The command will configure kubectl to automatically
|
||||
refresh its credentials using the same identity as the gcloud command-line
|
||||
tool. See https://cloud.google.com/kubernetes-engine/docs/kubectl for
|
||||
kubectl documentation.
|
||||
|
||||
EXAMPLES
|
||||
To get credentials of a cluster named my-cluster managed in location
|
||||
us-west1, run: $ gcloud alpha edge-cloud container clusters get-credentials \
|
||||
my-cluster --location=us-west1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Cluster resource - edge-cloud container cluster to get credentials. The
|
||||
arguments in this group can be used to specify the attributes of this
|
||||
resource. (NOTE) Some attributes are not given arguments in this group but
|
||||
can be set in other ways. To set the project attribute:
|
||||
◆ provide the argument cluster on the command line with a fully
|
||||
specified name;
|
||||
◆ provide the argument --project on the command line;
|
||||
◆ set the property core/project.
|
||||
|
||||
This must be specified.
|
||||
|
||||
CLUSTER
|
||||
ID of the cluster or fully qualified identifier for the cluster. To
|
||||
set the cluster attribute:
|
||||
▸ provide the argument cluster on the command line.
|
||||
|
||||
This positional must be specified if any of the other arguments in
|
||||
this group are specified.
|
||||
|
||||
--location=LOCATION
|
||||
Google Cloud location for the cluster. To set the location attribute:
|
||||
▸ provide the argument cluster on the command line with a fully
|
||||
specified name;
|
||||
▸ provide the argument --location on the command line.
|
||||
|
||||
FLAGS
|
||||
--auth-provider-cmd-path=AUTH_PROVIDER_CMD_PATH
|
||||
Path to the gcloud executable for the auth provider field in
|
||||
kubeconfig.
|
||||
|
||||
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 edge-cloud container clusters get-credentials
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue