From ab0ca9d3657a554e11b787bba5122c7365ce0c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sun, 7 Dec 2025 04:11:56 +0000 Subject: [PATCH] storage-limbosolutions-com, deploy scripts --- storage-limbosolutions-com/README.md | 21 ++----------------- .../helm/values.yaml} | 2 +- .../deploy/infra/kustomization.yaml | 7 +++++++ .../deploy/infra/namespace.yaml | 7 +++++++ .../ops-scripts/apply-app.sh | 14 +++++++++++++ 5 files changed, 31 insertions(+), 20 deletions(-) rename storage-limbosolutions-com/{seaweedfs-csi/helm-values.yaml => deploy/helm/values.yaml} (97%) create mode 100644 storage-limbosolutions-com/deploy/infra/kustomization.yaml create mode 100644 storage-limbosolutions-com/deploy/infra/namespace.yaml create mode 100755 storage-limbosolutions-com/ops-scripts/apply-app.sh diff --git a/storage-limbosolutions-com/README.md b/storage-limbosolutions-com/README.md index 62c7a87..fd66b1e 100644 --- a/storage-limbosolutions-com/README.md +++ b/storage-limbosolutions-com/README.md @@ -1,24 +1,7 @@ # storage-limbosolutions-com -## seaweedfs-csi - deploy - -```bash -kubectl create namespace storage-limbosolutions-com -``` - -```bash -helm repo add seaweedfs-csi-driver https://seaweedfs.github.io/seaweedfs-csi-driver/helm -helm repo update seaweedfs-csi-driver -``` - -```bash -helm upgrade --install \ ---set seaweedfsFiler=192.168.14.32:7888 \ ---set storageClassName=storage-limbosolutions-com \ ---set driverName=storage-limbosolutions-com-seaweedfs-csi \ ---values=./seaweedfs-csi/helm-values.yaml \ -storage-limbosolutions-com-seaweedfs-csi-driver seaweedfs-csi-driver/seaweedfs-csi-driver --namespace storage-limbosolutions-com - +```bash {cwd=../} +./storage-limbosolutions-com/ops-scripts/apply.sh ``` diff --git a/storage-limbosolutions-com/seaweedfs-csi/helm-values.yaml b/storage-limbosolutions-com/deploy/helm/values.yaml similarity index 97% rename from storage-limbosolutions-com/seaweedfs-csi/helm-values.yaml rename to storage-limbosolutions-com/deploy/helm/values.yaml index eabbe9a..358d015 100644 --- a/storage-limbosolutions-com/seaweedfs-csi/helm-values.yaml +++ b/storage-limbosolutions-com/deploy/helm/values.yaml @@ -4,7 +4,7 @@ storageClassName: "" storageClassVolumeBindingMode: Immediate isDefaultStorageClass: false tlsSecret: "" -imagePullPolicy: "IfNotPresent" # "Always" +imagePullPolicy: "Always" # "Always" driverName: storage-limbosolutions-com-csi-driver diff --git a/storage-limbosolutions-com/deploy/infra/kustomization.yaml b/storage-limbosolutions-com/deploy/infra/kustomization.yaml new file mode 100644 index 0000000..13aa9a1 --- /dev/null +++ b/storage-limbosolutions-com/deploy/infra/kustomization.yaml @@ -0,0 +1,7 @@ + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml +generatorOptions: + disableNameSuffixHash: true \ No newline at end of file diff --git a/storage-limbosolutions-com/deploy/infra/namespace.yaml b/storage-limbosolutions-com/deploy/infra/namespace.yaml new file mode 100644 index 0000000..cb32588 --- /dev/null +++ b/storage-limbosolutions-com/deploy/infra/namespace.yaml @@ -0,0 +1,7 @@ + +apiVersion: v1 +kind: Namespace +metadata: + name: storage-limbosolutions-com + labels: + name: storage-limbosolutions-com \ No newline at end of file diff --git a/storage-limbosolutions-com/ops-scripts/apply-app.sh b/storage-limbosolutions-com/ops-scripts/apply-app.sh new file mode 100755 index 0000000..90cb00e --- /dev/null +++ b/storage-limbosolutions-com/ops-scripts/apply-app.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +kubectl kustomize ./storage-limbosolutions-com/deploy/infra | kubectl apply -f - + +helm repo add seaweedfs-csi-driver https://seaweedfs.github.io/seaweedfs-csi-driver/helm +helm repo update seaweedfs-csi-driver + +helm upgrade --install \ +--set seaweedfsFiler=192.168.14.32:7888 \ +--set storageClassName=storage-limbosolutions-com \ +--set driverName=storage-limbosolutions-com-seaweedfs-csi \ +--values=./storage-limbosolutions-com/deploy/helm/values.yaml \ +storage-limbosolutions-com-seaweedfs-csi-driver seaweedfs-csi-driver/seaweedfs-csi-driver --namespace storage-limbosolutions-com \ No newline at end of file