Create a Kubernetes service account

This manifest creates a Kubernetes Service Account (KSA) to provide a unique identity for your application pod running in a GKE cluster. The KSA is later associated with a Google Cloud service account to securely authorize connections to your database instance.

Code sample

YAML

apiVersion: v1
kind: ServiceAccount
metadata:
  name: <YOUR-KSA-NAME> # TODO(developer): replace this value

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.