如何在Google Cloud platform上創(chuàng)建Kubernetes cluster并使用

來源: CSDN
作者:汪子熙
時間:2020-09-04
16838
本文分享在Google Cloud platform上創(chuàng)建Kubernetes cluster并使用具體步驟。

登錄Google Cloud platform,創(chuàng)建一個新的Kubernetes Cluster:

該集群的node個數(shù)選擇為1,從Machine type下拉列表里選擇CPU配置:

展開Advanced Edit,選擇該Kubernetes集群安裝所在的操作系統(tǒng)的鏡像類型:

選擇ubuntu,磁盤類型選擇SSD:

ia_13200000005.png

點擊Create,得到一個Kubernetes cluster:

ia_13200000006.png

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集群創(chuàng)建好之后,點擊Connect,

ia_13200000007.png

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

ia_13200000008.png

創(chuàng)建一個新的secret:

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

要獲取更多Jerry的原創(chuàng)文章,請關(guān)注公眾號"汪子熙":

版權(quán)聲明:本文為博主原創(chuàng)文章,遵循CC 4.0 BY-SA版權(quán)協(xié)議,轉(zhuǎn)載請附上原文出處鏈接和本聲明。

本文鏈接:https://blog.csdn.net/i042416/article/details/104713342

立即登錄,閱讀全文
版權(quán)說明:
本文內(nèi)容來自于CSDN,本站不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。文章內(nèi)容系作者個人觀點,不代表快出海對觀點贊同或支持。如有侵權(quán),請聯(lián)系管理員(zzx@kchuhai.com)刪除!
優(yōu)質(zhì)服務(wù)商推薦
更多
掃碼登錄
打開掃一掃, 關(guān)注公眾號后即可登錄/注冊
加載中
二維碼已失效 請重試
刷新
賬號登錄/注冊
個人VIP
小程序
快出海小程序
公眾號
快出海公眾號
商務(wù)合作
商務(wù)合作
投稿采訪
投稿采訪
出海管家
出海管家