Saltar a contenido

Argo CD (GitOps)

Instalación

helm repo add argo https://argoproj.github.io/argo-helm
helm repo update
helm upgrade --install argocd argo/argo-cd -n argocd --create-namespace --set server.service.type=LoadBalancer
Credenciales iniciales:
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

Despliegue de XPIFY

Archivo application.yaml:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: xpify
  namespace: argocd
spec:
  source:
    repoURL: https://github.com/TUORG/TUREPO.git
    path: helm/
    targetRevision: main
  destination:
    server: https://kubernetes.default.svc
    namespace: xpify
  syncPolicy:
    automated:
      prune: true
      selfHeal: true