Añadir apps/application.yaml
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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: 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: nginx-web
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
Reference in New Issue
Block a user