diff --git a/clusters/kairos/longhorn/helmrelease.yaml b/clusters/kairos/longhorn/helmrelease.yaml new file mode 100644 index 0000000..1b9912e --- /dev/null +++ b/clusters/kairos/longhorn/helmrelease.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: longhorn-release + namespace: longhorn-system +spec: + chart: + spec: + chart: longhorn + reconcileStrategy: ChartVersion + sourceRef: + kind: HelmRepository + name: longhorn-repo + version: 1.6.0 + interval: 1m0s + targetNamespace: longhorn-system diff --git a/clusters/kairos/longhorn/helmrepo.yaml b/clusters/kairos/longhorn/helmrepo.yaml new file mode 100644 index 0000000..122be45 --- /dev/null +++ b/clusters/kairos/longhorn/helmrepo.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: longhorn-repo + namespace: longhorn-system +spec: + interval: 1m0s + url: https://charts.longhorn.io diff --git a/clusters/kairos/longhorn/kustomization.yaml b/clusters/kairos/longhorn/kustomization.yaml index 1441a1e..0c9139d 100644 --- a/clusters/kairos/longhorn/kustomization.yaml +++ b/clusters/kairos/longhorn/kustomization.yaml @@ -1,4 +1,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: longhorn-system resources: +- namespace.yaml +- helmrepo.yaml +- helmrelease.yaml - longhornsetting.yaml diff --git a/clusters/kairos/longhorn/longhornsetting.yaml b/clusters/kairos/longhorn/longhornsetting.yaml index 62a3572..e7deca9 100644 --- a/clusters/kairos/longhorn/longhornsetting.yaml +++ b/clusters/kairos/longhorn/longhornsetting.yaml @@ -1,13 +1,6 @@ apiVersion: longhorn.io/v1beta2 kind: Setting metadata: - name: deleting-confirmation-flag - namespace: kube-system -value: "true" -# --- -# apiVersion: longhorn.io/v1beta2 -# kind: Setting -# metadata: -# name: default-replica-count -# namespace: kube-system -# value: 1 \ No newline at end of file + name: default-replica-count + namespace: longhorn-system +value: "1" \ No newline at end of file diff --git a/clusters/kairos/longhorn/namespace.yaml b/clusters/kairos/longhorn/namespace.yaml new file mode 100644 index 0000000..2bb0005 --- /dev/null +++ b/clusters/kairos/longhorn/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: longhorn-system \ No newline at end of file