配置kubectl 访问k3s
https://rancher.com/docs/k3s/latest/en/cluster-access/
Copy /etc/rancher/k3s/k3s.yaml on your machine located outside the cluster as ~/.kube/config. Then replace “localhost” with the IP or name of your K3s server. kubectl can now manage your K3s cluster.