-
Notifications
You must be signed in to change notification settings - Fork 3
/
default.yaml
46 lines (46 loc) · 1.5 KB
/
default.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: common
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: &repo https://github.com/diogosilva30/k3s.dsilva.dev.git
revision: HEAD
directories:
- path: apps/*
template:
metadata:
name: "{{ .path.basenameNormalized }}"
spec:
project: default
source:
repoURL: *repo
targetRevision: HEAD
path: "{{ .path.path }}"
# Inject the cluster annotations into the manifests
# From: https://github.com/argoproj/argo-cd/discussions/9042#discussioncomment-4398836
kustomize:
# Need to manually set annotations for now: https://github.com/argoproj/argo-cd/issues/11213
commonAnnotations:
dns: lab.local
name: LAB
environment: LAB
# Integration with external-dns
external-dns.alpha.kubernetes.io/target: lab.local
destination:
server: https://kubernetes.default.svc
namespace: "{{ .path.basenameNormalized }}"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
# Needs server side apply because some
# resources are too big to fit in the
# lastAppliedConfig annotation
# https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#server-side-apply
- ServerSideApply=true