- 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.
推薦閱讀
- 來吧!帶你玩轉(zhuǎn)Excel VBA
- Cloud Analytics with Microsoft Azure
- Getting Started with Containerization
- Windows 8應(yīng)用開發(fā)實(shí)戰(zhàn)
- JSF2和RichFaces4使用指南
- AWS Certified SysOps Administrator:Associate Guide
- 21天學(xué)通Java Web開發(fā)
- 21天學(xué)通Visual C++
- Implementing Oracle API Platform Cloud Service
- 悟透AutoCAD 2009案例自學(xué)手冊(cè)
- 單片機(jī)C語(yǔ)言程序設(shè)計(jì)完全自學(xué)手冊(cè)
- Azure PowerShell Quick Start Guide
- 分析力!專業(yè)Excel的制作與分析實(shí)用法則
- Mastering MongoDB 3.x
- 電氣控制及Micro800 PLC程序設(shè)計(jì)