- 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.
推薦閱讀
- 虛擬儀器設(shè)計(jì)測控應(yīng)用典型實(shí)例
- 數(shù)據(jù)中心建設(shè)與管理指南
- 數(shù)據(jù)運(yùn)營之路:掘金數(shù)據(jù)化時(shí)代
- Visual C# 2008開發(fā)技術(shù)詳解
- Hands-On Cybersecurity with Blockchain
- CorelDRAW X4中文版平面設(shè)計(jì)50例
- 大數(shù)據(jù)技術(shù)與應(yīng)用
- 21天學(xué)通C語言
- JSP從入門到精通
- 西門子變頻器技術(shù)入門及實(shí)踐
- Mastering Game Development with Unreal Engine 4(Second Edition)
- 從零開始學(xué)SQL Server
- 在實(shí)戰(zhàn)中成長:C++開發(fā)之路
- 寒江獨(dú)釣:Windows內(nèi)核安全編程
- 數(shù)據(jù)要素:全球經(jīng)濟(jì)社會(huì)發(fā)展的新動(dòng)力