Created
May 29, 2023 17:59
-
-
Save sergsoares/bae86daeccd07fd33b1887c5b5366c9b to your computer and use it in GitHub Desktop.
Justfile to apply argocd inside a cluster
This file contains 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
init: | |
colima start argocd-selfmanaged --kubernetes | |
kubectl-get-nodes: | |
kubectl get nodes | |
kubectl get pods -A | |
kubectl-apply-argocd: | |
kubectl create namespace argocd | |
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml | |
argocd-server: | |
kubectl port-forward svc/argocd-server -n argocd 8080:443 | |
login-argocd: | |
#!/bin/bash | |
PASSWORD=$(kubectl get secret argocd-initial-admin-secret -n argocd -o json | jq -r '.data.password' | base64 -d) | |
echo $PASSWORD | |
argocd login localhost:8080 --username admin --password $PASSWOR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment