Remove the requirement of Helm, and use the K3s HelmChart CRD installation method instead
This commit is contained in:
22
templates/longhorn.yaml.tpl
Normal file
22
templates/longhorn.yaml.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: longhorn
|
||||
---
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: kube-system
|
||||
spec:
|
||||
chart: longhorn
|
||||
repo: https://charts.longhorn.io
|
||||
targetNamespace: longhorn
|
||||
valuesContent: |-
|
||||
defaultSettings:
|
||||
defaultDataPath: /var/longhorn
|
||||
persistence:
|
||||
defaultFsType: ext4
|
||||
defaultClassReplicaCount: 2
|
||||
%{ if disable_hetzner_csi ~}defaultClass: true%{ else ~}defaultClass: false%{ endif ~}
|
@@ -47,4 +47,4 @@ spec:
|
||||
serviceAccountName: system-upgrade
|
||||
cordon: true
|
||||
upgrade:
|
||||
image: rancher/k3s-upgrade
|
||||
image: rancher/k3s-upgrade
|
||||
|
Reference in New Issue
Block a user