app-of-apps example
All files in infra repo
Last updated
Last updated
// get password
kubectl -n argocd get secret argocd-initial-admin-secret \
-o jsonpath="{.data.password}" | base64 -d; echo
// get hostname (does not work)
kubectl get service argocd-server -n argocd --output=jsonpath='{.status.loadBalancer.ingress[0].hostname}'
// for now as a shortcut just forward ports of the server
kubectl port-forward svc/argocd-server -n argocd 8081:https
// login to Argo-CD
argocd login localhost:8081 \
--username admin \
--password $(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo) \
--insecure
// start apps (assuming the correct github repo link with examples)
argocd app create apps \
--dest-namespace argocd \
--dest-server https://kubernetes.default.svc \
--repo https://github.com/argoproj/argocd-example-apps.git \
--path apps
// sync apps
argocd app sync apps cd to_apps_folder
helm template . --values values.yaml// check what was deployed in particular namespace (as in this example each app
// is deployed in its own namespace)
kubectl get pods -n guestbook
// and then port forward particular service
kubectl port-forward svc/guestbook-ui -n guestbook 8084:80
// check it
localhost:8084