Testing out argoCD deployed in Minikube to trial out setting up a website. Test.
Set up minikube following this guide. Run steps 1 & 2, essentialy:
- 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
- Check you have kubectl installed ... if not install it.
- Check your on the correct context using
kubectl config get-context
- If not switch context with
kubectl config set-context minikube
I followed the two guides, the argoCD setup guide and this blog post. As well as this guide by our lord and master.
- Make a new name space
kubectl create namespace argocd
- Install predefined config into minikube using
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- (Optional) You can choose to install the argocd CLI application at this point.
- Set the loadbalancer for the argocd UI.
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
- Get the default password.
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
- Set up the minikube tunnel to expose it on a seperate terminal.
minikube tunnel
- Find out the port the argocd UI is running on. This will be the external-IP for argocd-server.
kubectl get svc -n argocd
- (optional) Sign into the argocd CLI with the admin user.
argocd login <ARGOCD IP>
argocd cluster add minikube
- Sign into the argocd UI with the admin user. Go to the and fill in the details there.
- Generate an ssh-key pair to link the github repo to.
ssh-keygen -t rsa -b 4096 -f argocd
- Add the .pub to this repo under settings/Deloy Keys and the other into the argocd UI under settings/repositories/connect repo using ssh.
When back on your computer in one terminal run the following.
minikube start
minikube tunnel