在Google Cloud platform上创建Kubernetes cluster并使用
登錄Google Cloud platform,創建一個新的Kubernetes Cluster:
該集群的node個數選擇為1,從Machine type下拉列表里選擇CPU配置:
展開Advanced Edit,選擇該Kubernetes集群安裝所在的操作系統的鏡像類型:
選擇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集群創建好之后,點擊Connect,
即可在Google Cloud Shell里用kubectl命令行訪問這個Kubernetes cluster:
創建一個新的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的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的在Google Cloud platform上创建Kubernetes cluster并使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 华硕首款游戏掌机 ROG Ally 配件
- 下一篇: 在Google Cloud platfo