在Google Cloud platform上建立Kubernetes cluster並使用

i042416發表於2020-03-18

登入Google Cloud platform,建立一個新的Kubernetes Cluster:

在Google Cloud platform上建立Kubernetes cluster並使用

該叢集的node個數選擇為1,從Machine type下拉選單裡選擇CPU配置:

在Google Cloud platform上建立Kubernetes cluster並使用

展開Advanced Edit,選擇該Kubernetes叢集安裝所在的作業系統的映象型別:

在Google Cloud platform上建立Kubernetes cluster並使用

選擇ubuntu,磁碟型別選擇SSD:

在Google Cloud platform上建立Kubernetes cluster並使用

點選Create,得到一個Kubernetes cluster:

在Google Cloud platform上建立Kubernetes cluster並使用

The images for these containers will be pulled from the public Docker repository and store. The containers will be connected to each other and have some ports exposed to the internet.

Kubernetes叢集建立好之後,點選Connect,

在Google Cloud platform上建立Kubernetes cluster並使用

即可在Google Cloud Shell裡用kubectl命令列訪問這個Kubernetes cluster:

在Google Cloud platform上建立Kubernetes cluster並使用

建立一個新的secret:

kubectl create secret docker-registry docker-secret --docker-server= index.docker.io/v1/  --docker-username=jerry password=jerrywang --docker-email=jerry.wang @gmail.com


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2681038/,如需轉載,請註明出處,否則將追究法律責任。

相關文章