From 4388ffb703adef48db855ddab7e07b9c4ca5bed1 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Fri, 17 Mar 2023 23:35:30 +0100 Subject: [PATCH] Make a note about KUBECONFIG environment variable. A new to k3s user might get "surprised" by error messages from kubectl or k3s like: WARN[0000] Unable to read /etc/rancher/k3s/k3s.yaml, please start server with --write-kubeconfig-mode to modify kube config permissions error: error loading config file "/etc/rancher/k3s/k3s.yaml": open /etc/rancher/k3s/k3s.yaml: permission denied It can happen when there is a k3s installed on the same machine and `/etc/rancher/k3s/k3s.yaml` present. Signed-off-by: Kyr Shatskyy --- .../quick-start-guides/deploy-rancher-manager/helm-cli.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/getting-started/quick-start-guides/deploy-rancher-manager/helm-cli.md b/docs/getting-started/quick-start-guides/deploy-rancher-manager/helm-cli.md index 826e91bd272..f97db8db9f7 100644 --- a/docs/getting-started/quick-start-guides/deploy-rancher-manager/helm-cli.md +++ b/docs/getting-started/quick-start-guides/deploy-rancher-manager/helm-cli.md @@ -38,6 +38,8 @@ The kubeconfig file is important for accessing the Kubernetes cluster. Copy the scp root@:/etc/rancher/k3s/k3s.yaml ~/.kube/config ``` +In some cases it may need to make sure that your shell has the environment variable `KUBECONFIG=~/.kube/config` defined, for instance, it can be exported in your profile or rc files. +