From 3d947169f3c794884ce4436d1c844dd761a13d68 Mon Sep 17 00:00:00 2001 From: Peter Matseykanets Date: Mon, 23 Jun 2025 14:06:49 -0400 Subject: [PATCH] Add Kubeconfigs example workflows page --- docs/api/workflows/kubeconfigs.md | 160 ++++++++++++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 docs/api/workflows/kubeconfigs.md 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 -<