특정 Kubernetes 클러스터에 대한 kubectl 호출을 사용 설정하도록 적절한 사용자 인증 정보 및 엔드포인트 정보로 kubeconfig 파일을 업데이트합니다.
EXAMPLES
To switch to working on a specific Kubernetes cluster named 'sample', run:
gdcloud get-credentials sample
선택적 플래그
--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 전체 플래그
이러한 플래그는 모든 명령어에서 사용할 수 있습니다(--configuration, --format, --help, --project, --quiet).
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003e\u003ccode\u003egdcloud clusters get-credentials\u003c/code\u003e is the command used to generate a kubeconfig file.\u003c/p\u003e\n"],["\u003cp\u003eThe kubeconfig file generated contains the necessary credentials to access a cluster.\u003c/p\u003e\n"],["\u003cp\u003eThe command can be run with optional flags, as shown by the \u003ccode\u003e[flags]\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e-h\u003c/code\u003e or \u003ccode\u003e--help\u003c/code\u003e flag can be used to display help information for the \u003ccode\u003eget-credentials\u003c/code\u003e command.\u003c/p\u003e\n"]]],[],null,["# gdcloud clusters get-credentials\n\nNAME\n----\n\ngdcloud clusters get-credentials - Fetch credentials for a Kubernetes cluster.\n\nSYNOPSIS\n--------\n\n gdcloud clusters get-credentials CLUSTER_NAME [flags]\n\nDESCRIPTION\n-----------\n\nUpdate a kubeconfig file with appropriate credentials and endpoint information to enable kubectl calls for a specific Kubernetes cluster.\n\n### EXAMPLES\n\n To switch to working on a specific Kubernetes cluster named 'sample', run:\n\n gdcloud get-credentials sample\n\n### OPTIONAL FLAGS\n\n --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.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]