apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: nginx-app namespace: argocd spec: project: default source: repoURL: https://gitea.cruzcloud.net/devops/apps-registry.git path: workloads/nginx targetRevision: main destination: server: https://kubernetes.default.svc namespace: nginx-web # 🔴 1. Definimos nuestro propio namespace aislado syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=true # 🔴 2. ¡Súper importante! Le decimos a ArgoCD que cree el namespace si no existe.