--- 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 the structure and a description of fields of the Kubeconfig resource: ```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. E.g. using a service account `system:admin` will lead to the following error: ```bash kubectl create -o jsonpath='{.status.value}' -f -<