--- title: Kubeconfigs --- ## Kubeconfig Resource Kubeconfig is a Rancher resource `kubeconfigs.ext.cattle.io` that allows generating `v1.Config` kubeconfig files for interacting with Rancher and clusters managed by Rancher. ```sh kubectl api-resources --api-group=ext.cattle.io ``` To get a description of the fields and structure of the Kubeconfig resource, run: ```sh kubectl explain kubeconfigs.ext.cattle.io ``` ## Feature Flag The Kubeconfigs Public API is available since Rancher v2.12.0 and is enabled by default. It can be disabled by setting the `ext-kubeconfigs` feature flag to `false`. ```sh kubectl patch feature ext-kubeconfigs -p '{"spec":{"value":false}}' ``` ## Creating a Kubeconfig Only a **valid and active** Rancher user can create a Kubeconfig. For example, trying to create a Kubeconfig using a `system:admin` service account will lead to an error: ```bash kubectl create -o jsonpath='{.status.value}' -f -<