您现在的位置是:首页 > 文章详情

在Google Cloud platform上创建Kubernetes cluster并使用

日期:2020-03-07点击:308

登录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

本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。

原文链接:https://yq.aliyun.com/articles/748548
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章