Published on: January 31, 2024
3 min read
Use this tutorial as a great starting point to manage your cluster entirely through GitOps.

This tutorial will walk you through setting up a Google Kubernetes Engine (GKE) Cluster with ArgoCD pre-installed, utilizing Terraform, in less than 10 minutes. This will be a great starting point to manage your cluster entirely through GitOps.
Start by importing the example project by URL - https://gitlab.com/projects/new#import_project.
To import the project:
base64 -i /path/to/sa-key.json
On the left sidebar, select Settings > CI/CD. Expand Variables. 5. Set the variable BASE64_GOOGLE_CREDENTIALS to the base64 encoded JSON file you just created. 6. Set the variable TF_VAR_gcp_project to your GCP’s project name.


gcloud container clusters get-credentials gitlab-terraform-gke-argocd --region us-central1 --project <project-name>

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
kubectl port-forward svc/argocd-server -n argocd 8080:443
Initial Admin Secret to the login page.

We recommend reviewing setting up Review Ops with ArgoCD!
Start your free
30-day GitLab trial
No credit card required.
Enjoyed reading this blog post or have questions or feedback? Share your thoughts by creating a new topic in the GitLab community forum.
Share your feedbackStart building faster today
See what your team can do with the intelligent orchestration platform for DevSecOps.