c12s-application-set/deploy/applicationset.yaml
2022-12-19 22:43:40 +01:00

33 lines
672 B
YAML

---
apiVersion: v1
kind: Namespace
metadata:
name: infra
labels:
app: infra
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: le-distrilab
namespace: argocd
spec:
generators:
- list:
elements:
- app: k8s-poc-demo
overlay: prod
- app: argocd
overlay: prod
template:
metadata:
name: '{{app}}-{{overlay}}'
spec:
project: default
source:
repoURL: https://git.distrilab.fr/douzeb/distrilab-app-of-apps.git
targetRevision: HEAD
path: deploy/{{app}}/{{overlay}}
destination:
server: https://kubernetes.default.svc
namespace: infra