setting up argocd - quickstart
Install ArgoCD
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
Next, setup Ingress
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalacerr"}}'
Open your brownser and goto http://localhostAlternatively you can do the same, using the following commandkubectl port-forward svc/argocd-server -n argocd 8080:443
IMPORTANT
Getting your default admin password. User name is default to "admin".
argocd admin initial-password -n argocd
Copy the password and we going to use it to login via the command line, For example,
argocd login localhost --name admin --password PNUgOGiZsH4snOZj
Once you have done this, you will be able to use argocd to register application - guestbook.
Deploy your application
kubectl config get-contexts -o name
argocd cluster add docker-desktop
Setting to default contextskubectl config set-context --current --namespace=argocd
Deploy your application using the following command
argocd app create guestbook --repo https://github.com/mitzen/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
Comments