Workload Identity (GKE)
This article shows you how to enable Workload Identity on your Google Kubernetes Engine (GKE) clusters.
Make sure you have completed the following tasks before beginning:
- Enable the Google Kubernetes Engine API.
- Ensure that you have enabled the IAM Service Account Credentials API.
- Ensure that you have the following IAM roles:
roles/container.admin
roles/iam.serviceAccountAdmin
You can enable Workload Identity on clusters using the Google Cloud CLI or the Google Cloud console.
Create a new cluster
To enable Workload Identity on a new cluster, do the following: 1. Go to the Google Kubernetes Engine page in the Google Cloud console. 2. In the Create cluster dialog, for GKE Standard, click Configure. 3. From the navigation pane, under Cluster, click Security. 4. Select the Enable Workload Identity checkbox. 5. Configure your cluster as needed. 6. Click Create.
Update an existing cluster
To enable Workload Identity on an existing cluster, do the following:
- Go to the Google Kubernetes Engine page in the Google Cloud console.
- In the cluster list on the Google Kubernetes Engine page, click the name of the cluster you want to modify.
- On the Details tab, locate the Security section.
- For the Workload Identity field, click edit Edit Workload Identity.
- In the Edit Workload Identity dialog, select the Enable Workload Identity checkbox.
- Click Save Changes.