Added k3s tooling
This commit is contained in:
26
k3s-tooling/templates/traefik.yaml
Normal file
26
k3s-tooling/templates/traefik.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
{{- if .Values.traefik.enable -}}
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: traefik
|
||||
namespace: {{ .Values.argocd.namespace }}
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: {{ .Values.argocd.project }}
|
||||
source:
|
||||
repoURL: "https://traefik.github.io/charts"
|
||||
chart: traefik
|
||||
targetRevision: {{ .Values.traefik.targetRevision }}
|
||||
destination:
|
||||
server: {{ .Values.traefik.destination.server }}
|
||||
namespace: {{ .Values.traefik.destination.namespace }}
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true # Automatically remove resources no longer in the repo
|
||||
selfHeal: true # Automatically self-heal when drift is detected
|
||||
syncOptions:
|
||||
- ApplyOutOfSyncOnly=true
|
||||
- ServerSideApply=true
|
||||
- CreateNamespace=true
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user