Files
homelab/k8s-ng/core-state/templates/applications.yaml
T
Ultradesu 2a08898a23
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 17s
Configure three CoreDNS replicas on core nodes
2026-10-14 13:57:36 +01:00

33 lines
880 B
YAML

{{- range .Values.apps }}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .name }}
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: {{ .wave | quote }}
spec:
project: {{ .project | default $.Values.project }}
destination:
server: {{ $.Values.destinationServer }}
namespace: {{ .namespace }}
source:
repoURL: {{ $.Values.repoURL }}
targetRevision: {{ $.Values.targetRevision }}
path: {{ .path }}
syncPolicy:
automated:
selfHeal: true
prune: {{ if hasKey . "prune" }}{{ .prune }}{{ else }}true{{ end }}
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
{{- if and (hasKey . "validate") (not .validate) }}
- Validate=false
{{- end }}
{{- if .skipDryRunOnMissingResource }}
- SkipDryRunOnMissingResource=true
{{- end }}
{{- end }}