Accessing remote k3s Kubernetes cluster using kubectl

Per the k3s docs here, copy the /etc/rancher/k3s/k3s.yaml from your controller to your local machine at ~/.kube/config.

Change the server ip to it’s actual ip, and then should be able to use kubectl against the remote cluster.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.