kubeconfigs 드롭다운 메뉴를 클릭하고 사용할 kubeconfig를 선택하면 리소스 브라우저의 현재 kubeconfig를 전환할 수 있습니다.
kubeconfig를 선택하면 선택한 kubeconfig를 사용하도록 도구 창이 업데이트됩니다.
팁: kubeconfigs 드롭다운 메뉴를 사용하여 새 kubeconfig를 직접 추가할 수 있습니다.
Cloud Code Run 구성 사용
대체 kubeconfig 파일을 사용하도록 Cloud Code Run 구성을 수정할 수 있습니다. kubeconfig를 변경하려면 수정할 실행 구성을 열고 실행 > 고급 설정 아래의 kubeconfig 드롭다운에서 사용할 kubeconfig를 선택합니다.
kubeconfig를 선택하면 선택한 kubeconfig에 있는 컨텍스트를 반영하여 사용 가능한 컨텍스트가 업데이트됩니다.
팁: 드롭다운 오른쪽의 + 추가를 클릭하여 실행 구성에서 직접 새 kubeconfig를 추가할 수 있습니다.
[[["이해하기 쉬움","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-05(UTC)"],[[["\u003cp\u003eKubeconfig files are Kubernetes configuration files that manage cluster access, users, and contexts, and Cloud Code utilizes them for managing Kubernetes resources.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code allows you to add, remove, and switch between different kubeconfig files through its settings panel, located under \u003cstrong\u003eFile\u003c/strong\u003e > \u003cstrong\u003eSettings\u003c/strong\u003e > \u003cstrong\u003eTools\u003c/strong\u003e > \u003cstrong\u003eCloud Code\u003c/strong\u003e > \u003cstrong\u003eKubernetes\u003c/strong\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can easily switch the active kubeconfig for the resource browser through a dropdown menu, enabling you to view and manage resources in different clusters.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code Run Configurations can be modified to use specific kubeconfig files, allowing for targeted deployments and operations on different clusters.\u003c/p\u003e\n"],["\u003cp\u003eNew kubeconfigs can be added directly via both the Kubeconfigs dropdown menu and in the run configuration view.\u003c/p\u003e\n"]]],[],null,["# Work with kubeconfig files in Cloud Code for IntelliJ\n\nkubeconfig files are Kubernetes configuration files that organize cluster\naccess, users, and contexts. This page shows you how to add, delete and switch\nbetween different kubeconfigs in Cloud Code.\n\nFor more information about kubeconfig files, see the Kubernetes documentation on\n[organizing cluster access using kubeconfig files](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/).\n\nManage kubeconfigs\n------------------\n\nBy default, the Cloud Code plugin uses the default kubeconfig file (located\nunder the `$HOME/.kube` directory) for retrieving Kubernetes resources and\nrunning commands. However, additional kubeconfig files may be configured.\n\n### Add additional kubeconfig files\n\nTo add additional kubeconfig files:\n\n1. Navigate to Cloud Code settings within your IDE (**File** \\\u003e **Settings** \\\u003e **Tools** \\\u003e **Cloud Code** \\\u003e **Kubernetes** or for Mac OS X, **IntelliJ IDEA** \\\u003e **Preferences** \\\u003e **Tools** \\\u003e **Cloud Code** \\\u003e **Kubernetes**).\n2. In the **kubeconfigs** section, click the **+ Add kubeconfig** icon or press `Alt`+`insert` to bring up the selection dialog.\n3. In the **Select kubeconfig file** dialog, navigate to the location of the kubeconfig file you want to add.\n4. Select the kubeconfig file you want to use, and then click **Ok**.\n5. In the **Settings** dialog, click **OK** to save your changes.\n\n### Remove kubeconfig files\n\nTo remove kubeconfig files:\n\n1. Navigate to Cloud Code settings within your IDE (**File** \\\u003e **Settings** \\\u003e **Tools** \\\u003e **Cloud Code** \\\u003e **Kubernetes** or for Mac OS X, **IntelliJ IDEA** \\\u003e **Preferences** \\\u003e **Tools** \\\u003e **Cloud Code** \\\u003e **Kubernetes**).\n2. In the **kubeconfigs** section, click the kubeconfig you want to remove, and then click the **- Remove** icon or press `Alt`+`Delete`.\n3. Click **Ok** to save your changes.\n\n### Switch kubeconfigs\n\nYou can toggle the resource browser's current kubeconfig by clicking on\nthe kubeconfigs drop-down menu and selecting the kubeconfig you want to use.\nUpon selecting a kubeconfig, the tool window updates to use the chosen\nkubeconfig.\n\n**Tip**: New kubeconfigs can be added directly using the kubeconfigs drop-down\nmenu.\n\n### Using Cloud Code Run Configurations\n\nCloud Code Run Configurations can be modified to use alternate\nkubeconfig files. To change kubeconfigs, open the Run Configuration to modify\nand under **Run** \\\u003e **Advanced settings**, select the kubeconfig you want to\nuse from the kubeconfig drop-down menu.\nUpon selecting a kubeconfig, available contexts update to reflect those found in\nthe selected kubeconfig.\n\n**Tip** : New kubeconfigs can be added directly from run configurations by\nclicking **+ Add** to the right of the drop-down.\n\nWhat's next\n-----------\n\n- [Organize your cluster access using kubeconfig files](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/).\n- [Develop and debug parts of a microservice application](/code/docs/intellij/speed-up-k8s-development#develop_microservices_applications_using_skaffold_configurations) using skaffold.\n- Learn more about Cloud Code's [YAML editing](/code/docs/intellij/yaml-editing) assistance.\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]