c12s-application-set/deploy/applicationset.yaml

34 lines
672 B
YAML
Raw Normal View History

2022-12-18 23:36:54 +00:00
---
apiVersion: v1
kind: Namespace
metadata:
name: infra
labels:
app: infra
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
2022-12-19 13:38:22 +00:00
name: le-distrilab
2022-12-19 21:43:40 +00:00
namespace: argocd
2022-12-18 23:36:54 +00:00
spec:
generators:
- list:
elements:
- app: k8s-poc-demo
overlay: prod
2022-12-19 21:43:40 +00:00
- app: argocd
overlay: prod
2022-12-18 23:36:54 +00:00
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