官术网_书友最值得收藏!

Creating a cluster on GKE to host the containers

The container engine cluster runs on top of GCE. For this recipe, we'll create a two-node cluster which will be internally managed by Kubernetes:

  1. We'll create the cluster using the following command:
$ gcloud container clusters create mysite-cluster
--scopes "cloud-platform" --num-nodes 2 --zone us-east1-c

The gcloud command automatically generates a kubeconfig entry that enables us to use kubectl on the cluster:

  1. Using kubectl, verify that you have access to the created cluster:
$ kubectl get nodes

The gcloud command is used to manage resources on Google Cloud Project and kubectl is used to manage resources on the Container Engine/Kubernetes cluster.

主站蜘蛛池模板: 唐河县| 邵东县| 恩施市| 湾仔区| 萝北县| 改则县| 石狮市| 新野县| 舟山市| 福安市| 大冶市| 商丘市| 镇赉县| 盐城市| 庐江县| 沧州市| 二手房| 东山县| 若尔盖县| 黔西县| 沙坪坝区| 西安市| 锦屏县| 沛县| 湘西| 龙州县| 武乡县| 宁陵县| 辽宁省| 汽车| 咸阳市| 文成县| 互助| 宜州市| 鹰潭市| 布拖县| 呼伦贝尔市| 宜川县| 连南| 平果县| 垣曲县|