Creating a GKE Cluster
Begin by logging into Google Cloud Platform and creating a service account to operate your cluster.
Using your service account, create your Google Container Engine (GKE) cluster.
Create a Service Account
Create a service account using Google Cloud Platform. GKE uses this account to operate your cluster. Creating this account also generates a private key used for authentication.
The service account requires the following roles:
Create the GKE Cluster
Use Rancher to set up and configure your Kubernetes cluster.
From the Clusters page, click Add Cluster.
Choose Google Container Engine.
Enter a Cluster Name.
Use Member Roles to configure user authorization for the cluster.
- Click Add Member to add users that can access the cluster.
- Use the Role drop-down to set permissions for each user.
Either paste your service account private key in the Service Account text box or Read from a file. Then click Next: Configure Nodes.
Note: After submitting your private key, you may have to enable the Google Kubernetes Engine API. If prompted, browse to the URL displayed in the Rancher UI to enable the API.
Use Cluster Options to choose the version of Kubernetes, what network provider will be used, if you want to enable Pod Security Policies and whether the nodes added to this cluster need to have a supported Docker version installed.
Use Nodes to provision each node in your cluster and choose a geographical region.
Review your options to confirm they’re correct. Then click Create.
- Your cluster is created and assigned a state of Provisioning. Rancher is standing up your cluster.
- You can access your cluster after its state is updated to Active.
- Active clusters are assigned two Projects,
Default(containing the namespace
System(containing the namespaces
kube-system, if present).