在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 –[email protected]

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙"