From fb0af1893569c7826659d77127153255f3238bb5 Mon Sep 17 00:00:00 2001 From: ytshih Date: Thu, 5 Dec 2024 11:57:38 +0000 Subject: [PATCH] Feat(storages): Add storages --- flux-storages/hedgedoc.yaml | 23 +++++++++++++++++++++++ flux-storages/storageclass.yaml | 8 ++++++++ 2 files changed, 31 insertions(+) create mode 100644 flux-storages/hedgedoc.yaml create mode 100644 flux-storages/storageclass.yaml diff --git a/flux-storages/hedgedoc.yaml b/flux-storages/hedgedoc.yaml new file mode 100644 index 0000000..04d926a --- /dev/null +++ b/flux-storages/hedgedoc.yaml @@ -0,0 +1,23 @@ +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: hedgedoc-iscsi +spec: + storageClassName: iscsi + volumeMode: Filesystem + capacity: + storage: 32G + accessModes: + - ReadWriteOnce + iscsi: + chapAuthDiscovery: false + chapAuthSession: true + fsType: xfs + initiatorName: iqn.2016-04.com.open-iscsi:38a483e890 + iqn: iqn.2003-01.org.linux-iscsi.vms.x8664:sn.a9cb223bcd01 + lun: 0 + secretRef: + name: hedgedoc-iscsi + namespace: flux-system + targetPortal: 192.168.68.65:3260 diff --git a/flux-storages/storageclass.yaml b/flux-storages/storageclass.yaml new file mode 100644 index 0000000..6a52aad --- /dev/null +++ b/flux-storages/storageclass.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: iscsi +provisioner: kubernetes.io/no-provisioner +volumeBindingMode: WaitForFirstConsumer +reclaimPolicy: Retain