Skip to content

davidwmcneill/gitops-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitops-playground


A quick start K3d setup bootstrapped with Argocd


The challenges of local software development

  • Lead time to setup a working local environment
  • Drift of config and setup standards over time between each developers environment
  • Not representative of the final production environment

Why k3d?

  • An easy way to have Argocd up and running locally for testing new features/releases
  • Gitops for home lab projects
  • Minimal Prerequisites

Requirements


To start the cluster with bootstrapping

This will wrap the install script for k3d located here: k3d install script

Note: This will update kubeconfig context


What is in the bootsrap

The bootstrap makes a few changes from the default k3d installation:

  • Replace Traefik v1 with Ingress-Nginx
  • Replace the default network (Flannel) with Calico to support Network policies

Run full bootstrap

CREATE_CLUSTER=true ./bootstrap.sh 

Argocd

Argocd is installed as part of the cluster bootstrap using klipper-helm from inside the running cluster


Argocd Login

The Argocd url is presented via ingress on the path /argocd: http://localhost:8080/argocd

Login details:

Username: admin
Password: letmein

K3d Options

View cluster

k3d cluster list

Stop cluster

k3d cluster stop playground

Start cluster

k3d cluster start playground

Clean up

remove the cluster

k3d cluster delete playground

Troubleshooting

To access the Argo login page the app of apps deployment must successfully complete the Prometheus and Nginx-ingress sync. In the event of issues sync issues, use the port-forward option to access the Argo web interface to debug:

kubectl -n argocd port-forward svc/argo-argocd-server 8080:80

Releases

No releases published

Packages

No packages published