ITPub博客

首页 > 应用开发 > IT综合 > 在Google Cloud platform上创建Kubernetes cluster并使用

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

原创 IT综合 作者:i042416 时间:2020-03-18 08:34:27 0 删除 编辑

登录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= index.docker.io/v1/  --docker-username=jerry password=jerrywang --docker-email=jerry.wang @gmail.com


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24475491/viewspace-2681038/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
测试

注册时间:2018-01-20

  • 博文量
    3822
  • 访问量
    1982480