Files
apps-registry/apps/nginx-app.yaml
T
2026-06-21 20:53:07 +00:00

21 lines
596 B
YAML

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.