GCP-GKE ¶
Cluster.dev uses stack templates to generate users' projects in a desired cloud. GCP-GKE is a stack template that creates and provisions Kubernetes clusters in GCP cloud by means of Google Kubernetes Engine (GKE).
On this page you will find guidance on how to create a GKE cluster on GCP using one of the Cluster.dev prepared samples – the GCP-GKE stack template. Running the example code will have the following resources created:
-
VPC
-
GKE Kubernetes cluster with addons:
-
cert-manager
-
ingress-nginx
-
external-secrets (with GCP Secret Manager backend)
-
external-dns
-
argocd
-
Prerequisites ¶
- Terraform version >= 1.4
- GCP account and project
- GCloud CLI installed and configured with your GCP account
- kubectl installed
- Cluster.dev client installed
- Parent Domain
Before you begin ¶
-
Enable Secret Manager:
Quick Start ¶
- Clone example project:
- Update
project.yaml
: - Create GCP bucket for Terraform backend:
- Edit variables in the example's files, if necessary.
- Run
cdev plan
- Run
cdev apply
-
Set up DNS delegation for subdomain by creating NS records for subdomain in parent domain. Run
Add records from name_server list.cdev output
: -
Authorize cdev/Terraform to interact with GCP via SDK:
- Connect to GKE cluster:
- Retrieve the ArgoCD admin password, install the ArgoCD CLI: