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