kubectl create namespace argocd
kubectl apply -n argocd -f <https://raw.githubusercontent.com/argoproj/argo-cd/v2.12.0/manifests/ha/install.yaml>

Buat skrg pake external load balancer IP dari metallb aja lah, pusing confignya:

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'

Ntar klo ada waktu bisa implementasi di Gateway API Traefik

Buat dapetin credential login ke dashboard Argo CD:

kubectl get secret argocd-initial-admin-secret -n argocd -o yaml

# Output
apiVersion: v1
data:
  password: dEZxcXgyNE1BUFRsaUtKdg==
kind: Secret
metadata:
  creationTimestamp: "2024-08-10T18:11:41Z"
  name: argocd-initial-admin-secret
  namespace: argocd
  resourceVersion: "4720394"
  uid: f4968f7c-551d-4105-b85e-29b7e183a577
type: Opaque
echo "dEZxcXgyNE1BUFRsaUtKdg==" | base64 --decode

# Output
tFqqx24MAPTliKJv     # Ini password buat login dengan user admin

Tinggal login aja

image.png

TLS Configuration:

kubectl create -n argocd secret tls argocd-server-tls \\
  --cert=/path/to/cert.pem \\
  --key=/path/to/key.pem

Documentation: