登陆Google Cloud platform,建立一个新的Kubernetes Cluster:node
该集群的node个数选择为1,从Machine type下拉列表里选择CPU配置:docker
展开Advanced Edit,选择该Kubernetes集群安装所在的操做系统的镜像类型:ubuntu
选择ubuntu,磁盘类型选择SSD:spa
点击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,3d
便可在Google Cloud Shell里用kubectl命令行访问这个Kubernetes cluster:orm
建立一个新的secret:server
kubectl create secret docker-registry docker-secret --docker-server=https://index.docker.io/v1/ --docker-username=jerry password=jerrywang --docker-email=jerry.wang@gmail.comblog
要获取更多Jerry的原创文章,请关注公众号"汪子熙":