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 0000000..f67e0d4 Binary files /dev/null and b/s3-csi/resources/secret.hcloud.yaml differ 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