Back to articles
ArgoCD on GKE Autopilot
How-ToDevOps

ArgoCD on GKE Autopilot

via Dev.toAtypical.

In this article, I want to share with you my recent experience with GKE to deploy a CD tool like ArgoCD . I will use Terraform to deploy the GKE cluster and deploy my Helm chart within the newly created cluster. Here's what it will look like: Prerequisites Terraform v1.0.0+ gcloud cli authenticated gcloud plugin gke-gcloud-auth-plugin kubectl binary Service account with the required permissions (following Least Privilege principle) and its access key . Setup Firstly, we need to do is to add the Terraform providers for Helm and for our GKE cluster . Create the file providers.tf . Add these lines to specify where Kubernetes and Helm resources must apply: # providers.tf provider "kubernetes" { host = "https:// ${data . google_container_cluster . my_cluster . endpoint } " token = data . google_client_config . default . access_token cluster_ca_certificate = base64decode ( data . google_container_cluster . my_cluster . master_auth [ 0 ]. cluster_ca_certificate ) } provider "helm" { kubernete

Continue reading on Dev.to

Opens in a new tab

Read Full Article
4 views

Related Articles