- Google Cloud Platform Cookbook
- Legorie Rajan PS
- 109字
- 2021-08-27 19:13:24
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:
- 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:

- 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.
推薦閱讀
- 亮劍.NET:.NET深入體驗(yàn)與實(shí)戰(zhàn)精要
- 協(xié)作機(jī)器人技術(shù)及應(yīng)用
- 計(jì)算機(jī)原理
- 模型制作
- 可編程序控制器應(yīng)用實(shí)訓(xùn)(三菱機(jī)型)
- Learn CloudFormation
- Statistics for Data Science
- Salesforce for Beginners
- Hands-On Data Warehousing with Azure Data Factory
- 自動化生產(chǎn)線安裝與調(diào)試(三菱FX系列)(第二版)
- ESP8266 Robotics Projects
- 人工智能:語言智能處理
- 空間機(jī)器人
- WOW!Photoshop CS6完全自學(xué)寶典
- 中國戰(zhàn)略性新興產(chǎn)業(yè)研究與發(fā)展·數(shù)控系統(tǒng)