0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

kubectrl でクラスタの起動に接続エラーで失敗する

Posted at

エラー

クラスタを起動すると以下のようなエラーが表示される。

Deploy Failed. Could not connect to cluster due to "https://kubernetes.docker.internal:6443/version?timeout=32s": dial tcp 127.0.0.1:6443: connect: connection refused. Check your connection for the cluster.

原因

Kubernetes が起動していない。

解決策

Kubernetes を起動する。

Mac であれば以下の設定をONにする。
CleanShot 2022-06-28 at 13.58.14.png

余談

Kubernetes が起動していないと、左下の Kubernetes アイコンが表示されないのでそこからも判断できる。
画像は Docker と Kubernetes の両方が起動されている状態。

CleanShot 2022-06-28 at 13.58.54.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?