diff --git a/docs/api/workflows/kubeconfigs.md b/docs/api/workflows/kubeconfigs.md new file mode 100644 index 00000000000..9416ad661c5 --- /dev/null +++ b/docs/api/workflows/kubeconfigs.md @@ -0,0 +1,160 @@ +--- +title: Kubeconfigs +--- + +
+ + + +## 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. + +```bash +kubectl create -o jsonpath='{.status.value}' -f -<