c12s-application-set/deploy/applicationset.yaml
2022-12-19 00:36:54 +01:00

32 lines
657 B
YAML

---
apiVersion: v1
kind: Namespace
metadata:
name: infra
labels:
app: infra
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: infra-distrilab
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