32 lines
758 B
YAML
32 lines
758 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: cluster-autoscaler
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- list:
|
|
elements:
|
|
- cluster: development
|
|
url: https://kubernetes.default.svc
|
|
template:
|
|
metadata:
|
|
name: 'cluster-autoscaler-{{.cluster}}'
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://github.com/ryanc/argocd.git
|
|
targetRevision: HEAD
|
|
path: cluster-autoscaler/envs/{{.cluster}}
|
|
destination:
|
|
server: '{{.url}}'
|
|
namespace: kube-system
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|