35 lines
994 B
YAML
35 lines
994 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: my-applications
|
|
namespace: argocd
|
|
spec:
|
|
generators:
|
|
- git:
|
|
repoURL: "https://git.konsthol.eu/konsthol/argocdapps"
|
|
revision: "main"
|
|
directories:
|
|
- path: apps/example-app
|
|
- path: apps/json-echo
|
|
template:
|
|
metadata:
|
|
name: "{{path.basename}}"
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: "http://nexus-repo-nexus-repository-manager.default.svc.cluster.local:8081/repository/my-helm-repo/"
|
|
targetRevision: "*"
|
|
chart: "{{path.basename}}"
|
|
helm:
|
|
valueFiles:
|
|
- "https://git.konsthol.eu/konsthol/argocdapps/raw/branch/main/apps/{{path.basename}}/values.yaml"
|
|
destination:
|
|
server: "https://kubernetes.default.svc"
|
|
namespace: "{{path.basename}}"
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|