kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yamlkubectl create namespace argoproj
kubectl apply -f https://raw.githubusercontent.com/argoproj/argo-rollouts/stable/manifests/install.yamlGet the admin password and use it to login with argo cd:
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 -d && echo
argocd login localhost:8080 --username admin --password <password>Then add the git repo to Argo CD:
export USERNAME=<your-github-repository>
export REPO=go-simple-webserver
argocd app create go-simple-webserver \
--repo https://github.com/$USERNAME/$REPO.git \
--path manifests \
--dest-server https://kubernetes.default.svc \
--dest-namespace defaultkubectl port-forward svc/argocd-server -n argocd 8080:443To login use the following credentials: admin/<password>
<password> can be retrieved from kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 -d && echo