Skip to content

jon-walton/linkerd2-gitops-example

Repository files navigation

GitOps Example

This is an example on deploying cluster resources using a GitOps pattern. This started as an experiment on deploying Linkerd2 with zero human interaction.

Using the example

Prerequisites

Create a Kind cluster

kind create cluster --config ./cluster.yaml --wait 5m

Deploy

cd ./terraform
terraform init
terraform apply

Terraform does the following:

  • Deploys Cert-Manager
  • Creates a Linkerd trust anchor
    • Look at azure.tf to see how that could also be saved into a key vault
  • Deploys a Cert-Manager issuer and a Linkerd identity certificate
  • Deploys ingress-nginx
  • Deploys ArgoCD
    • Bootstraps ArgoCD to monitor the ./argocd/environments folder for applications to install

Login to ArgoCD

https://argoproj.github.io/argo-cd/getting_started/#port-forwarding

# Get the admin password
kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2

kubectl port-forward svc/argocd-server -n argocd 8080:443

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published