## NAME

gdcloud clusters get-credentials - Fetch credentials for a Kubernetes cluster.

## SYNOPSIS

    gdcloud clusters get-credentials CLUSTER_NAME [flags]

## DESCRIPTION

Update a kubeconfig file with appropriate credentials and endpoint information to enable kubectl calls for a specific Kubernetes cluster.

### EXAMPLES

    To switch to working on a specific Kubernetes cluster named 'sample', run:

        gdcloud get-credentials sample

### OPTIONAL FLAGS

          --zone string   Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.

### GDCLOUD WIDE FLAGS

These flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.

For more information, see the [gdcloud CLI reference overview](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page.