Prerequisites for Configuring Clusters on GKE
The prerequisites for configuring clusters on GKE are as follows:
Creating New Project on GCP
You need to create a new project on Google Cloud Platform (GCP) to use the GKE services.
Procedure
Step 1 |
Go to the New Project page on GCP. |
Step 2 |
In the Project name field, enter a name for your project, and then click CREATE. |
Creating Service Account
A service account represents a Google Cloud service identity. You need to create a service account to interact with the google APIs.
Procedure
Step 1 |
Open the GCP console: |
Step 2 |
In the left pane, click . |
Step 3 |
Click SELECT PROJECT, choose your project, and then click OPEN. |
Step 4 |
Click CREATE SERVICE ACCOUNT. |
Step 5 |
In the Service account details area, enter a service account name, a description, and then click CREATE. |
Step 6 |
In the Service account permissions page, add the following roles:
|
Step 7 |
Click CONTINUE. |
Step 8 |
Grant users access to this service account and click DONE. |
Creating User Credentials on GCP
Procedure
Step 1 |
Open the GCP console: |
Step 2 |
In the left pane, click . |
Step 3 |
In the left pane, click Service accounts. |
Step 4 |
In the row of the service account for which you want to create a key, click Actions button, and then click Create key. |
Step 5 |
Select a JSON key type and click CREATE. credentials.json file. You need to copy and paste the contents of this file when adding a GKE provider. For more information, see Adding Google Kubernetes Engine Provider Profile.
For more information on creating credentials in GCP, see Creating and managing service account keys. |
Enabling GCP APIs
Procedure
Step 1 |
Open the GCP console: |
Step 2 |
In the left pane, click . |
Step 3 |
Click ENABLE APIS AND SERVICES. |
Step 4 |
In the search box, enter Kubernetes Engine API, and then click ENABLE. |
Step 5 |
In the search box, enter Cloud Resource Manager API, and then click ENABLE. |