zoukankan      html  css  js  c++  java
  • 在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的原创文章,请关注公众号"汪子熙":

  • 相关阅读:

    模块
    序列化模块
    time模块、os模块、sys模块
    re模块、collections模块、random模块
    正则表达式
    递归函数和二分查找
    匿名函数
    推推导式和内置函数
    Java引用类型与值类型——Java面向对象基础(7)
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/12444201.html
Copyright © 2011-2022 走看看