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

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.

主站蜘蛛池模板: 鹤壁市| 遂宁市| 太白县| 柳河县| 枣阳市| 兴安县| 宜都市| 钦州市| 忻城县| 嘉禾县| 新野县| 四会市| 濮阳市| 宁波市| 台湾省| 林芝县| 崇义县| 辽宁省| 房山区| 恩平市| 宝山区| 阿勒泰市| 灵璧县| 三门峡市| 溧阳市| 杂多县| 丹江口市| 应城市| 府谷县| 亳州市| 白银市| 左云县| 荆州市| 那坡县| 温泉县| 安徽省| 湘潭市| 洮南市| 镇江市| 浦城县| 资兴市|