31 lines
914 B
YAML
31 lines
914 B
YAML
|
apiVersion: argoproj.io/v1alpha1
|
||
|
kind: ApplicationSet
|
||
|
metadata:
|
||
|
name: k8s-applications
|
||
|
spec:
|
||
|
generators:
|
||
|
- git:
|
||
|
repoURL: ssh://git@git.averytribe.com:522/matthewaveryusa/mono.git
|
||
|
revision: main
|
||
|
directories:
|
||
|
- path: k8s/*
|
||
|
template:
|
||
|
metadata:
|
||
|
name: '{{path.basename}}' # This sets the app name to the folder name
|
||
|
spec:
|
||
|
project: default
|
||
|
source:
|
||
|
repoURL: ssh://git@git.averytribe.com:522/matthewaveryusa/mono.git
|
||
|
targetRevision: main
|
||
|
path: '{{path}}'
|
||
|
destination:
|
||
|
server: https://kubernetes.default.svc
|
||
|
namespace: '{{path.basename}}' # Deploy into a namespace matching the app name
|
||
|
syncPolicy:
|
||
|
automated:
|
||
|
prune: true # Ensures apps are removed if deleted from Git
|
||
|
selfHeal: true
|
||
|
syncOptions:
|
||
|
- CreateNamespace=true # Ensures namespace is created if missing
|
||
|
|