이 페이지의 일부 또는 전체 정보는 S3NS의 신뢰할 수 있는 클라우드에 적용되지 않을 수 있습니다.
VS Code용 Cloud Code에서 kubeconfig 파일 작업
kubeconfig 파일은 클러스터 액세스, 사용자, 컨텍스트를 구성하는 Kubernetes 구성 파일입니다. 이 페이지에서는 Cloud Code에서 여러 kubeconfig를 추가, 삭제, 전환하는 방법을 설명합니다.
kubeconfig 파일에 대한 자세한 내용은 kubeconfig 파일을 사용하여 클러스터 액세스 구성에 관한 Kubernetes 문서를 참조하세요.
kubeconfig 관리
기본적으로 Cloud Code 플러그인은 Kubernetes 리소스를 검색하고 명령어를 실행하는 데 $HOME/.kube
디렉터리에 있는 기본 kubeconfig 파일을 사용합니다. 하지만 추가 kubeconfig 파일을 구성할 수 있습니다.
kubeconfig 파일 추가
kubeconfig 파일을 추가하려면 다음 안내를 따르세요.
- 명령어 팔레트를 열고(
Ctrl
/Cmd
+Shift
+P
를 누르거나 보기 > 명령어 팔레트를 클릭) Cloud Code: Switch kubeconfig를 실행합니다.
- + kubeconfig 로드를 클릭한 다음 추가할 kubeconfig 파일의 위치로 이동합니다.
- 추가할 kubeconfig 파일을 선택한 다음 KubeConfig 경로 추가를 클릭합니다.
- 메시지가 표시되면 새 kubeconfig의 이름을 지정합니다.
Enter
를 눌러 확인합니다.
kubeconfig 파일 삭제
kubeconfig 파일을 삭제하려면 다음 단계를 따르세요.
- 명령어 팔레트를 열고(
Ctrl
/Cmd
+Shift
+P
를 누르거나 보기 > 명령어 팔레트를 클릭) Cloud Code: Remove KubeConfig from Kubernetes Explorer를 실행합니다.
- 삭제하려는 kubeconfig 옆에 있는 체크박스를 선택한 다음 확인을 클릭합니다.
kubeconfig 전환
명령어 팔레트를 사용하여 kubeconfig를 전환할 수 있습니다. kubeconfig를 전환하려면 다음 단계를 따르세요.
- 명령어 팔레트를 연 다음 Cloud Code: Switch KubeConfig를 실행합니다.
- 사용할 kubeconfig를 클릭합니다.
다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-11(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-11(UTC)"],[[["Kubeconfig files are Kubernetes configuration files that manage cluster access, users, and contexts, and Cloud Code utilizes them for various operations."],["Cloud Code defaults to the kubeconfig file in the `$HOME/.kube` directory but allows the addition of other kubeconfig files for managing different contexts."],["You can add kubeconfig files in Cloud Code by using the \"Cloud Code: Switch kubeconfig\" command in the command palette and navigating to the desired file, and you can name them as well."],["Removing kubeconfig files in Cloud Code is possible by using the command \"Cloud Code: Remove KubeConfig from Kubernetes Explorer\", and selecting the files to remove."],["Switching between different kubeconfigs is easily done through the command palette by using the \"Cloud Code: Switch KubeConfig\" command and selecting the desired kubeconfig."]]],[]]