K3s: Kubeconfig

K3s Kubernetes config file is located at:

cat /etc/rancher/k3s/k3s.yaml

Kubernetes third-party applications will check the config file at:

cat $HOME/.kube/config

To make life easier, we link /etc/rancher/k3s/k3s.yaml to $HOME/.kube/config.

ln -s /etc/rancher/k3s/k3s.yaml $HOME/.kube/config

References:


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *