Skip to content

Instantly share code, notes, and snippets.

@jiajunngjj
Last active May 6, 2022 07:54
Show Gist options
  • Select an option

  • Save jiajunngjj/3fb7d381f90c162c0b11aeea5b4db2b5 to your computer and use it in GitHub Desktop.

Select an option

Save jiajunngjj/3fb7d381f90c162c0b11aeea5b4db2b5 to your computer and use it in GitHub Desktop.
//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