Remove the requirement of Helm, and use the K3s HelmChart CRD installation method instead

This commit is contained in:
Michael Karbowiak
2022-05-02 22:47:50 +02:00
parent 547ca6d29b
commit 6fa7daa21d
5 changed files with 35 additions and 46 deletions

View 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 ~}

View File

@@ -47,4 +47,4 @@ spec:
serviceAccountName: system-upgrade
cordon: true
upgrade:
image: rancher/k3s-upgrade
image: rancher/k3s-upgrade