--- 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 Admins can delete any Kubeconfig, while regular users can only delete their own. When a Kubeconfig is deleted, the kubeconfig tokens are also deleted. E.g. using a service account `system:admin` will lead to the following error: ```bash kubectl create -o jsonpath='{.status.value}' -f -<