Integrating GKE and GCP Secret Manager
Thanks to the CSI Secret Store plugins, we can integrate Secret Manager solutions with our Kubernetes cluster. The Kubernetes offering on Google Cloud is the Google Kubernetes engine. We will use this Kubernetes cluster offering to integrate with Secret Manager.
There are several options to create a cluster. We will provide the Terraform code for the scope of creating the cluster. Also, we will provide other commands needed.
Configuring the Terraform project
We need to configure the Terraform provider. It will point to the GCP credentials file and also to the GCP project and the region.
The provider configuration should be like this:
provider "google" { credentials = "/path/to/credentials/file" project = "your-gcp-project" region = "us-central1" }
To initialize, we need to run the init
command...