minikubeを使ったあとにGKEを使おうと(kubectlコマンドを実行)すると、次のエラーが発生して接続できない。
Unable to connect to the server: dial tcp 192.168.99.100:8443: i/o timeout もしくは The connection to the server localhost:8080 was refused - did you specify the right host or port?
対応としてはgcloud container clustersコマンドでクラスタ名を指定すればよい。
# 使用するクラスタ名を調べる gcloud container clusters list # クラスタを選択 gcloud container clusters get-credentials (クラスタ名)