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 1 year has passed since last update.

gcloud container clusters get-credentials で発生するエラーの対応

Last updated at Posted at 2022-01-29

備忘録

[Errno 21] Is a directory: {gcloud container コマンド実行時のdir} が発生した

このエラーが発生する時は環境変数 KUBECONFIG が存在しない時が多いです。
.zshrc or .bashrc ファイルに KUBECONFIG を追加してみましょう。

[Errno 1] Operation not permitted が発生した

.kube/config が読み込めていない可能性があります。
chownしましょう。

$(id -g) $HOME/.kube/
 sudo chown $(id -u):$(id -g) $HOME/.kube/config

詳細は以下のドキュメントを参照。

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?