* feat: add advanced features to config Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: only enable longhorn if distro is k3s or k0s Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: update ansible lint Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
#% if volsync|default({}) and volsync.enabled|default(false) %#
|
|
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: snapshot-controller
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: snapshot-controller
|
|
version: 2.0.4
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: piraeus
|
|
namespace: flux-system
|
|
install:
|
|
crds: CreateReplace
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
crds: CreateReplace
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
controller:
|
|
#% if bootstrap_distribution in ['k0s', 'k3s'] and longhorn|default({}) and longhorn.enabled|default(false) %#
|
|
volumeSnapshotClasses:
|
|
- name: longhorn-snapclass
|
|
annotations:
|
|
snapshot.storage.kubernetes.io/is-default-class: "true"
|
|
driver: driver.longhorn.io
|
|
deletionPolicy: Delete
|
|
# Ref: https://github.com/longhorn/longhorn/issues/2534#issuecomment-1010508714
|
|
parameters:
|
|
type: snap
|
|
#% endif %#
|
|
serviceMonitor:
|
|
create: true
|
|
webhook:
|
|
enabled: false
|
|
#% endif %#
|