GKEクラスタを作成

kubectlインストール(事前準備)

$ scoop install kubectl

Kubernetes Engine APIを有効(事前準備)
プロジェクトでKubernetes Engine APIを有効にする。

CLIで構築を行うため、gcloudをセットアップ

$ scoop bucket add extras
$ scoop install gcloud

リージョンとゾーンを設定

$ gcloud config set compute/region asia-northeast1
$ gcloud config set compute/zone asia-northeast1-a

GKEクラスタ作成

構文:
gcloud container clusters create [CLUSTER_NAME]
$ gcloud container clusters create sample_cluster 

パラメータについて https://cloud.google.com/sdk/gcloud/reference/container/clusters/create?hl=ja

ノード確認
クラスタ作成時に台数指定しない場合⇒デフォルトは3台

$ kubectl get node

Pod確認

$ kubectl get pods --all-namespaces

クラスタ削除 ランニングコスト発生のため、不要なら削除する

$ gcloud container clusters delete sample_cluster