
上QQ阅读APP看书,第一时间看更新
Deploying a Kubernetes cluster
To deploy a new cluster, you need to follow these steps:
- Click on Add Cluster.
- Choose a provider. In our example, we will use GKE. Some settings for other providers might be slightly different:
- Enter a cluster name.
If you have your GCP service account JSON file that we saved previously, skip to step 10.
- From the GCP navigation menu, go to IAM and click on the Service accounts link.
- Click on Create Service Account.
- Enter a service account name and click Create.
- Add the required minimum permissions; that is, Compute Viewer, Viewer, Kubernetes Engine Admin, and Service Account User, and click Continue.
- Click on Create Key. Use JSON as the key type in order to save your service account.
- On the Rancher UI, click on Read from a file and load the service account JSON file you saved previously.
- Customize the Cluster Options as needed; otherwise, use the default settings and click on Create to deploy your Kubernetes cluster:
Your cluster will be listed and ready to be managed immediately on your Rancher dashboard.