diff --git a/apps/ nginx/application.yaml b/apps/ nginx/application.yaml index f15be93..b5e2b3d 100644 --- a/apps/ nginx/application.yaml +++ b/apps/ nginx/application.yaml @@ -1,18 +1,23 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: root-apps-registry + name: nginx-app namespace: argocd spec: project: default source: repoURL: 'https://gitea.cruzcloud.net/devops/apps-registry.git' - path: apps + path: apps/nginx targetRevision: HEAD + # Aquí le decimos a Argo que, además de la app, inyecte la gobernanza + plugin: + name: argocd-kustomize-plugin # O simplemente usa kustomize si prefieres destination: server: 'https://kubernetes.default.svc' - namespace: argocd + namespace: nginx-web syncPolicy: automated: prune: true - selfHeal: true \ No newline at end of file + selfHeal: true + syncOptions: + - CreateNamespace=true \ No newline at end of file