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

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.

主站蜘蛛池模板: 宾阳县| 东宁县| 本溪| 淄博市| 开化县| 东辽县| 武宣县| 苏尼特右旗| 方城县| 宁德市| 古浪县| 潜山县| 都江堰市| 建水县| 大庆市| 汉源县| 海城市| 上栗县| 攀枝花市| 高青县| 连平县| 固原市| 金乡县| 西平县| 吴旗县| 阿尔山市| 明溪县| 方城县| 九江县| 鄂州市| 宜君县| 泰来县| 平定县| 凌海市| 宽甸| 成都市| 大关县| 沧源| 应城市| 宝丰县| 泗阳县|