登陸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的原創文章,請關注公衆號"汪子熙":