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

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.

主站蜘蛛池模板: 舟曲县| 通州区| 永安市| 林州市| 卫辉市| 施秉县| 杨浦区| 乳源| 宁海县| 惠水县| 绍兴市| 康定县| 贡嘎县| 专栏| 凤台县| 富宁县| 岐山县| 怀柔区| 明星| 科技| 安西县| 天峻县| 且末县| 疏附县| 秀山| 屯留县| 尚义县| 伽师县| 开平市| 廉江市| 太和县| 苍梧县| 原阳县| 武义县| 河西区| 福清市| 札达县| 洛阳市| 调兵山市| 德化县| 永寿县|