From e52a682ccabf9946dfe410c6356fb7375067546e Mon Sep 17 00:00:00 2001 From: jpgouin Date: Mon, 24 Feb 2025 14:22:56 +0100 Subject: [PATCH] Update README.md add explanation to create a cluster from a host cluster accessed through Rancher --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 29ba108d..d5fb191b 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,15 @@ To create a new K3k cluster, use the following command: ```bash k3kcli cluster create mycluster ``` +> [!NOTE] +> Creating a K3k Cluster from a host cluster accessed through Rancher +> +>If your host cluster is accessed throught **Rancher** +> (e.g the `server` value in the `kubeconfig` looks like `server: "https:///k8s/clusters/abc"`.). +> +>Then use the `--kubeconfig-server` flag while creating the cluster so that the generated kubeconfig use the proper endpoint. +> +>`k3kcli cluster create --kubeconfig-server mycluster` When the K3s server is ready, `k3kcli` will generate the necessary kubeconfig file and print instructions on how to use it.