From efbfadcb9353ddf640b2831a1aafcdb4784977cb Mon Sep 17 00:00:00 2001 From: Luke D Iremadze Date: Tue, 5 Mar 2024 21:21:40 -0700 Subject: [PATCH] Update Kube Config instructions (#470) Co-authored-by: Techno Tim --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8775d79..d9a63f7 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,22 @@ ansible-playbook reset.yml -i inventory/my-cluster/hosts.ini To copy your `kube config` locally so that you can access your **Kubernetes** cluster run: ```bash -scp debian@master_ip:~/.kube/config ~/.kube/config +scp debian@master_ip:/etc/rancher/k3s/k3s.yaml ~/.kube/config ``` +If you get file Permission denied, go into the node and temporarly run: +```bash +sudo chmod 777 /etc/rancher/k3s/k3s.yaml +``` +Then copy with the scp command and reset the permissions back to: +```bash +sudo chmod 600 /etc/rancher/k3s/k3s.yaml +``` + +You'll then want to modify the config to point to master IP by running: +```bash +sudo nano ~/.kube/config +``` +Then change `server: https://127.0.0.1:6443` to match your master IP: `server: https://192.168.1.222:6443` ### 🔨 Testing your cluster