Workload Identity (GKE)
-
DarkLight
Workload Identity (GKE)
-
DarkLight
Overview
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:
- Go to the Google Kubernetes Engine page in the Google Cloud console.
- In the Create cluster dialog, for GKE Standard, click Configure.
- From the navigation pane, under Cluster, click Security.
- Select the Enable Workload Identity checkbox.
- Configure your cluster as needed.
- 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.