Openstack を GKE の上で作成する


Posted on Sat, May 18, 2019
Tags openstack, gke

GKE で Openstack コントローラーをデプロイしてみる

リージョン選定

asia-northeast1 が東京 リージョンとゾーン | Compute Engine ドキュメント | Google Cloud

VM をプリエンプティブサーバにしてコスト削減

VM type は 1 VCPU, 3 GB RAM * 3 を pool に登録

GKE の tutorial を行う

Kubernetes Engine での Go Bookshelf の実行 | Go | Google Cloud

gcloud container clusters のコマンド

gcloud container が GKE まわりのコマンドかな?

COMMANDS
    COMMAND is one of the following:

     create
        Create a cluster for running containers.

     delete
        Delete an existing cluster for running containers.

     describe
        Describe an existing cluster for running containers.

     get-credentials
        Fetch credentials for a running cluster.

     list
        List existing clusters for running containers.

     resize
        Resizes an existing cluster for running containers.

     update
        Update cluster settings for an existing container cluster.

     upgrade
        Upgrade the Kubernetes version of an existing container cluster.
gcloud container clusters list
NAME                LOCATION           MASTER_VERSION  MASTER_IP     MACHINE_TYPE   NODE_VERSION  NUM_NODES  STATUS
standard-cluster-1  asia-northeast1-b  1.11.9-gke.8    35.189.151.9  custom-1-3072  1.11.9-gke.8  3          RUNNING

kubectl を実行する前にクレデンシャルを取得する必要があった

Kubernetes(GKE)にお安く入門する - LiBz Tech Blog

gcloud container clusters get-credentials standard-cluster-1 -z asia-northeast1-b

kubectl exec はデフォルトの namespace を向いている

kubectl exec -n tiller-world -it ... /bin/sh

べつの namespace の場合、↑としないと pod に入ることができない