From e52a682ccabf9946dfe410c6356fb7375067546e Mon Sep 17 00:00:00 2001 From: jpgouin Date: Mon, 24 Feb 2025 14:22:56 +0100 Subject: [PATCH 1/3] 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. From dbbe03ca96f04b1d7629a6d99692567685f8a161 Mon Sep 17 00:00:00 2001 From: jpgouin Date: Tue, 25 Feb 2025 10:56:45 +0100 Subject: [PATCH 2/3] Update README.md Co-authored-by: Enrico Candino --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d5fb191b..20300c78 100644 --- a/README.md +++ b/README.md @@ -94,15 +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 +> [!NOTE] Creating a K3k Cluster on a Rancher-Managed Host Cluster > ->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` +> If your *host* Kubernetes cluster is managed by Rancher (e.g., your kubeconfig's `server` address includes a Rancher URL), use the `--kubeconfig-server` flag when creating your K3k cluster: +> +>```bash +>k3kcli cluster create --kubeconfig-server mycluster +>``` +> +> This ensures the generated kubeconfig connects to the correct endpoint. When the K3s server is ready, `k3kcli` will generate the necessary kubeconfig file and print instructions on how to use it. From 89137722400555d2ac2ee2a6f9e05adc61bcb835 Mon Sep 17 00:00:00 2001 From: jpgouin Date: Tue, 25 Feb 2025 11:07:47 +0100 Subject: [PATCH 3/3] Update README.md Co-authored-by: Enrico Candino --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 20300c78..c47512fc 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,8 @@ To create a new K3k cluster, use the following command: ```bash k3kcli cluster create mycluster ``` -> [!NOTE] Creating a K3k Cluster on a Rancher-Managed Host Cluster +> [!NOTE] +> **Creating a K3k Cluster on a Rancher-Managed Host Cluster** > > If your *host* Kubernetes cluster is managed by Rancher (e.g., your kubeconfig's `server` address includes a Rancher URL), use the `--kubeconfig-server` flag when creating your K3k cluster: >