From 80c6dc54dcd8e6939b88e4f56331c4ad927c7459 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Sat, 9 Nov 2024 09:28:18 +0100 Subject: [PATCH] feat(csi): add hcloud s3 storage class --- s3-csi/kustomization.yaml | 6 ++++-- s3-csi/resources/secret.hcloud.yaml | Bin 0 -> 549 bytes s3-csi/resources/storageClass.garage.yaml | 2 +- s3-csi/resources/storageClass.hcloud.yaml | 20 ++++++++++++++++++++ 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 s3-csi/resources/secret.hcloud.yaml create mode 100644 s3-csi/resources/storageClass.hcloud.yaml diff --git a/s3-csi/kustomization.yaml b/s3-csi/kustomization.yaml index 86fa379..cc69ba7 100644 --- a/s3-csi/kustomization.yaml +++ b/s3-csi/kustomization.yaml @@ -5,7 +5,9 @@ namespace: kube-system resources: - resources/secret.garage.yaml + - resources/secret.hcloud.yaml - resources/storageClass.garage.yaml + - resources/storageClass.hcloud.yaml images: - name: registrar @@ -17,6 +19,7 @@ images: - name: csi newName: code.icb4dc0.de/infrastructure/csi-s3 newTag: 0.38.3 + digest: sha256:afda8c9cb694023dcaca7c644114372927ddf2c2de77ee4f19caf5c7695dcb04 patches: - target: @@ -26,11 +29,10 @@ patches: name: csi-s3 path: patches/daemonset.yaml - helmCharts: - name: csi-s3 repo: https://yandex-cloud.github.io/k8s-csi-s3/charts/ releaseName: csi-s3 namespace: kube-system version: "0.38.3" - valuesFile: config/values.csi-s3.yaml \ No newline at end of file + valuesFile: config/values.csi-s3.yaml diff --git a/s3-csi/resources/secret.hcloud.yaml b/s3-csi/resources/secret.hcloud.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f67e0d4c7f3e3ede93da37391eeb4176fe003162 GIT binary patch literal 549 zcmV+=0^0pyXJsvAZewzJaCB*JZZ2-=<{Zgluf5o^he2l%BP4*-#8C)_x#GNXEL$YW1Sqy7O905 z)iX>0Y878*v+q^BC;FI{y+BBuTirXu2hDFAC8<}QqeF5;b3!Wx)N$UEz>08u9m(>Z nQJnhCeO%np);Kscpk?-EHq!AW*z?)TQqD7TkZIPpQ%|)#+Ed?z literal 0 HcmV?d00001 diff --git a/s3-csi/resources/storageClass.garage.yaml b/s3-csi/resources/storageClass.garage.yaml index 0ab17e1..48db8d4 100644 --- a/s3-csi/resources/storageClass.garage.yaml +++ b/s3-csi/resources/storageClass.garage.yaml @@ -14,6 +14,6 @@ parameters: csi.storage.k8s.io/provisioner-secret-name: csi-s3-garage-secret csi.storage.k8s.io/provisioner-secret-namespace: kube-system mounter: geesefs - options: '--memory-limit 1000 --dir-mode 0777 --file-mode 0666' + options: "--memory-limit 1000 --dir-mode 0777 --file-mode 0666" reclaimPolicy: Delete volumeBindingMode: Immediate diff --git a/s3-csi/resources/storageClass.hcloud.yaml b/s3-csi/resources/storageClass.hcloud.yaml new file mode 100644 index 0000000..189ad3d --- /dev/null +++ b/s3-csi/resources/storageClass.hcloud.yaml @@ -0,0 +1,20 @@ +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: hcloud-blob +provisioner: ru.yandex.s3.csi +parameters: + bucket: 1661580-csi + csi.storage.k8s.io/controller-publish-secret-name: csi-s3-hcloud-secret + csi.storage.k8s.io/controller-publish-secret-namespace: kube-system + csi.storage.k8s.io/node-publish-secret-name: csi-s3-hcloud-secret + csi.storage.k8s.io/node-publish-secret-namespace: kube-system + csi.storage.k8s.io/node-stage-secret-name: csi-s3-hcloud-secret + csi.storage.k8s.io/node-stage-secret-namespace: kube-system + csi.storage.k8s.io/provisioner-secret-name: csi-s3-hcloud-secret + csi.storage.k8s.io/provisioner-secret-namespace: kube-system + mounter: geesefs + options: "--memory-limit 1000 --dir-mode 0777 --file-mode 0666" +reclaimPolicy: Delete +volumeBindingMode: Immediate