Skip to content

Testing out argoCD deployed in Minikube to trial out setting up a website.

Notifications You must be signed in to change notification settings

AlexWendland/agrocd-cluster-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 

Repository files navigation

argocd-test

Testing out argoCD deployed in Minikube to trial out setting up a website. Test.

Setup

Minikube

Set up minikube following this guide. Run steps 1 & 2, essentialy:

  1. Run the following
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start
  1. Check you have kubectl installed ... if not install it.
  2. Check your on the correct context using
kubectl config get-context
  1. If not switch context with
kubectl config set-context minikube

Argocd

I followed the two guides, the argoCD setup guide and this blog post. As well as this guide by our lord and master.

  1. Make a new name space
kubectl create namespace argocd
  1. Install predefined config into minikube using
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
  1. (Optional) You can choose to install the argocd CLI application at this point.
  2. Set the loadbalancer for the argocd UI.
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
  1. Get the default password.
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
  1. Set up the minikube tunnel to expose it on a seperate terminal.
minikube tunnel
  1. Find out the port the argocd UI is running on. This will be the external-IP for argocd-server.
kubectl get svc -n argocd
  1. (optional) Sign into the argocd CLI with the admin user.
argocd login <ARGOCD IP>
argocd cluster add minikube
  1. Sign into the argocd UI with the admin user. Go to the and fill in the details there.
  2. Generate an ssh-key pair to link the github repo to.
ssh-keygen -t rsa -b 4096 -f argocd
  1. Add the .pub to this repo under settings/Deloy Keys and the other into the argocd UI under settings/repositories/connect repo using ssh.

Rerunning

When back on your computer in one terminal run the following.

minikube start
minikube tunnel

About

Testing out argoCD deployed in Minikube to trial out setting up a website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages