Install flask application
- kubectl create ns demo
- helm install flask-app .argocd-repositories/flask-app --namespace demo
Install argocd
- Install argocd
brew install argocd
- Create argocd namespace
kubectl create namespace argocd
- Apply manifests files
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- Port-forward argocd-server using
kubectl port-forward svc/argocd-server -n argocd 8080:443
in another terminal tab. - Login through the UI. Password can be obtained from
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
, the username isadmin
. - Login via cli using
argocd login localhost:8080 --username admin --password $(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d)
- Add github ssh key. Refer to github docs if ssh key has not be generated, otherwise run
argocd repo add git@gitlab.myteksi.net:itn.kaikiat.poh/argocd-demo.git --ssh-private-key-path ~/.ssh/id_rsa
. This can be intepreted asargocd repo add GITHUB_SSH_URL --ssh-private-key-path /path/to/ssh/key
, this command with add a github repository to argocd. - Verify using
argocd repo list
- Apply the manifests file using
kubectl apply -f application.yaml