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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `gdcloud clusters get-credentials` command fetches credentials for a specified Kubernetes cluster."],["It updates the kubeconfig file, enabling `kubectl` calls to that cluster."],["The command requires the `CLUSTER_NAME` as an argument."],["The `--zone` flag is available for multi-zone environments."],["The command also supports the gdcloud wide flags: `--configuration`, `--format`, `--help`, `--project`, and `--quiet`."]]],[]]