インフラ系SEの技術メモ

雑なエンジニアが低信頼性のメモを書いています。参考程度にとどめてください。

(kubectl)Unable to connect to the server: dial tcp [::1]:8080: connectexというエラー

事象

以下エラー発生。

$ kubectl get ns
Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

原因

ホームディレクトリ配下に配置していた.kubeが消えていた。
ここにファイルがない場合は上記のようなメッセージが出る模様。