This is a demo repo to test argocd with a simple main.go application using net/http package.
-
Clone this repository
git clone https://github.com/raghavi101/argocd_demo
-
Start your minikube
minikube start
-
Create a namespace "argocd"
kubectl create namespace argocd
-
Refer to argocd getting started doc for this step and get your argocd inststance up and running.
-
Apply the application object created for this deployment in argocd namespace
kubectl apply -n argocd -f application.yaml
-
Check and Synchronise your deployment using argocd UI in your localhost.
-
Check your deployment on a different tab
minikube service my-go-app-service --url
-
Done and Deployed! Now every change you make in your yaml files and apply it to git, argocd will sync your deployment.