LoginSignup
1
0

More than 3 years have passed since last update.

gcloud,kubectlインストール後のちょっとした設定

Posted at

gcloud, kubectlインストール後からクラスタ等を操作するまでの雑記。

環境

macOS Catalina 10.15.4

内容

# プロジェクト一覧を表示する
$ gcloud projects list
# プロジェクトを設定する
$ gcloud config set project <project_name>
# 上で設定したプロジェクトを確認する
$ gcloud config list
# プロジェクトのクラスター一覧を表示する
$ gcloud container clusters list
# kubernetes設定ファイルを更新する
$ gcloud container clusters get-credentials <cluster_name> --region <region>
# ファイルの更新を確認する
$ cat $HOME/.kube/config
# コンテキスト一覧を表示する
$ kubectl config get-contexts

参考

1
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
1
0