- 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.
推薦閱讀
- Linux Mint System Administrator’s Beginner's Guide
- Cloud Analytics with Microsoft Azure
- 基于多目標(biāo)決策的數(shù)據(jù)挖掘方法評(píng)估與應(yīng)用
- 精通特征工程
- 大數(shù)據(jù)驅(qū)動(dòng)的設(shè)備健康預(yù)測(cè)及維護(hù)決策優(yōu)化
- Containers in OpenStack
- 智能生產(chǎn)線的重構(gòu)方法
- ZigBee無(wú)線通信技術(shù)應(yīng)用開(kāi)發(fā)
- 工業(yè)機(jī)器人入門(mén)實(shí)用教程
- Web璀璨:Silverlight應(yīng)用技術(shù)完全指南
- 電動(dòng)汽車(chē)驅(qū)動(dòng)與控制技術(shù)
- 無(wú)人駕駛感知智能
- Mastering MongoDB 4.x
- Learning OpenShift
- 洞察大數(shù)據(jù)價(jià)值:SAS編程與數(shù)據(jù)挖掘