- 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.
推薦閱讀
- 輕輕松松自動化測試
- Introduction to DevOps with Kubernetes
- 工業機器人產品應用實戰
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- 數據挖掘實用案例分析
- 21天學通C#
- 人工智能與人工生命
- 高維聚類知識發現關鍵技術研究及應用
- 運動控制系統應用與實踐
- 液壓機智能故障診斷方法集成技術
- 生物3D打印:從醫療輔具制造到細胞打印
- Hands-On Dashboard Development with QlikView
- 人工智能:智能人機交互
- 筆記本電腦使用與維護
- Hands-On Business Intelligence with Qlik Sense