20 lines
554 B
YAML
20 lines
554 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: kube-system # 🔴 Cambiado a tu namespace dedicado
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true # 🔴 Obliga a Argo a crear el namespace si no existe |