登錄Google Cloud platform,創(chuàng)建一個新的Kubernetes Cluster:
該集群的node個數(shù)選擇為1,從Machine type下拉列表里選擇CPU配置:
展開Advanced Edit,選擇該Kubernetes集群安裝所在的操作系統(tǒng)的鏡像類型:
選擇ubuntu,磁盤類型選擇SSD:
點擊Create,得到一個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集群創(chuàng)建好之后,點擊Connect,
即可在Google Cloud Shell里用kubectl命令行訪問這個Kubernetes cluster:
創(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)文章,請關注公眾號"汪子熙":
版權聲明:本文為博主原創(chuàng)文章,遵循CC 4.0 BY-SA版權協(xié)議,轉(zhuǎn)載請附上原文出處鏈接和本聲明。
本文鏈接:https://blog.csdn.net/i042416/article/details/104713342