37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# Longhorn: replicated block storage on the workers' 200 GB disk (sdb, mounted
|
|
# at /var/lib/longhorn by scripts/prep-worker.sh). Masters are tainted, so
|
|
# Longhorn only runs on the workers.
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: longhorn
|
|
namespace: argocd
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://charts.longhorn.io
|
|
chart: longhorn
|
|
targetRevision: 1.13.0
|
|
helm:
|
|
valuesObject:
|
|
# The pre-upgrade hook job doesn't work under Argo CD.
|
|
preUpgradeChecker:
|
|
jobEnabled: false
|
|
persistence:
|
|
# local-path stays the k3s default; apps ask for longhorn by name.
|
|
defaultClass: false
|
|
defaultClassReplicaCount: 2
|
|
defaultSettings:
|
|
defaultDataPath: /var/lib/longhorn
|
|
defaultReplicaCount: 2
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: longhorn-system
|
|
syncPolicy:
|
|
automated:
|
|
# No prune: a bad commit must not be able to delete the storage layer.
|
|
prune: false
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- ServerSideApply=true
|