我已经安装了 k3s 和 minikube。如果我尝试
kubectl config get-contexts
得到
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
好的,我可以解决这个问题
sudo k3s kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* default default default
我启动minikube
minikube start