出たエラー
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
を実行した際の、
The connection to the server localhost:8080 was refused - did you specify the right host or port?
The connection to the server localhost:8080 was refused - did you specify the right host or port?
のエラー
解決策
以下を実行し、
https://stackoverflow.com/a/52262765
さらに以下のように権限を変更した。
sudo chmod -R 777 .kube