Last active
May 6, 2022 07:54
-
-
Save jiajunngjj/3fb7d381f90c162c0b11aeea5b4db2b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //installation in k8s | |
| kubectl create namespace argocd | |
| //deploy manifest | |
| kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml | |
| //patch to type LoadBalancer | |
| kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}' | |
| //retreive password | |
| kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d | |
| //installation of argoCD CLI (mac) | |
| brew install argocd | |
| //login | |
| argo login | |
| //example: deploy application | |
| argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace test | |
| argocd app sync guestbook |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment