ArgoCD¶
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes.
Installations¶
CLI¶
sudo curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
sudo chmod +x /usr/local/bin/argocd
K8s deployment¶
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
Connect to Argo¶
Method 1 - port-forward
Method 2 - change service type to loadbalancer
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
kubectl get services -n argocd
Credentials¶
user: admin
pass: kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
Set Configuration¶
Add Credential (for private repos)¶
Generate PAT token in this link
- export GITHUB_TOKEN=