Instalación
información
Solo disponible para Kubernetes (k8s)
Para proceder a la instalacion de ArgoCD en nuestra plataforma necesitamos ejecutar los siguientes pasos:
- Creamos el namespace
 
kubectl create namespace argocd 
- Instalamos el manifest con kubectl
 
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
Como ArgoCD no queda expuesto hacia fuera, tenemos dos opciones:
- Acceder internamente con
 
kubectl port-forward svc/argocd-server -n argocd 8080:443
- O exponerlo y para ello debemos crearles un ingress.yaml de la siguiente manera:
 
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: argocd-server-ingress
  namespace: argocd
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-nginx
    nginx.ingress.kubernetes.io/ssl-passthrough: "true"
    # If you encounter a redirect loop or are getting a 307 response code
    # then you need to force the nginx ingress to connect to the backend using HTTPS.
    #
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
  ingressClassName: appsec-nginx
  rules:
  - host: argocd.yourdomain.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: argocd-server
            port:
              name: https
  tls:
  - hosts:
    - argocd.yourdomain.com
    secretName: argocd-server-tls # as expected by argocd-server
Y ahora debemos aplicarlo con:
kubectl apply -f ingress.yaml -n argocd