From 78df97b5f668b67ab48f51d79c9188fb9f506a3a Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Tue, 11 Feb 2025 23:56:11 +0100 Subject: [PATCH] Add openebs to flux --- infra/controllers/openebs.yaml | 109 +++++++++++++++++++++++++++++++++ infra/kustomization.yaml | 1 + 2 files changed, 110 insertions(+) create mode 100644 infra/controllers/openebs.yaml diff --git a/infra/controllers/openebs.yaml b/infra/controllers/openebs.yaml new file mode 100644 index 0000000..0469bae --- /dev/null +++ b/infra/controllers/openebs.yaml @@ -0,0 +1,109 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: openebs +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: openebs + namespace: openebs +spec: + interval: 24h + url: https://openebs.github.io/openebs +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: openebs + namespace: openebs +spec: + interval: 30m + chart: + spec: + chart: openebs + version: 4.1.3 + sourceRef: + kind: HelmRepository + name: openebs + namespace: openebs + interval: 12h + values: + zfs-localpv: + cidrs: + zfsLocalPv: + enabled: false + + lvm-localpv: + crds: + lmvLocalPv: + enabled: false + + mayastor: + csi: + node: + initContainers: + # We need to disable the init container that checks for the nvme_tcp module, since Talos has that module built-in. + # https://www.talos.dev/v1.9/kubernetes-guides/configuration/storage/#deploy-mayastor + enabled: false + resources: + requests: + cpu: 0 + controller: + resources: + requests: + cpu: 0 + + etcd: + clusterDomain: homelab.lumpiasty.xyz + # Single node cluster for now + replicaCount: 1 + io_engine: + # Workaround for crashing io-engine + # https://github.com/openebs/mayastor/issues/1763#issuecomment-2481922234 + envcontext: "iova-mode=pa" + agents: + core: + resources: + requests: + cpu: 0 + ha: + node: + resources: + requests: + cpu: 0 + cluster: + resources: + requests: + cpu: 0 + apis: + rest: + resources: + requests: + cpu: 0 + obs: + callhome: + resources: + requests: + cpu: 0 + stats: + resources: + requests: + cpu: 0 + + operators: + pool: + resources: + requests: + cpu: 0 + + engines: + local: + lvm: + enabled: false + zfs: + enabled: false + replicated: + mayastor: + enabled: true diff --git a/infra/kustomization.yaml b/infra/kustomization.yaml index 0862d4e..59fa222 100644 --- a/infra/kustomization.yaml +++ b/infra/kustomization.yaml @@ -4,4 +4,5 @@ resources: - controllers/nginx.yaml - controllers/dns-public.yaml - controllers/cert-manager.yaml + - controllers/openebs.yaml - configs/cluster-issuer.yaml