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

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.

主站蜘蛛池模板: 贺兰县| 潞西市| 怀来县| 肥乡县| 余江县| 枝江市| 雷州市| 会东县| 马尔康县| 平江县| 启东市| 大余县| 星子县| 泰顺县| 杂多县| 改则县| 南昌市| 武鸣县| 庆云县| 辽源市| 沿河| 边坝县| 兴宁市| 安平县| 盐亭县| 公主岭市| 喜德县| 曲麻莱县| 白山市| 惠水县| 福清市| 新龙县| 禄丰县| 东宁县| 德安县| 沈丘县| 易门县| 姚安县| 盈江县| 阿坝县| 新龙县|