diff --git a/helm/README.md b/helm/README.md index 39aba9f8..924da3ab 100644 --- a/helm/README.md +++ b/helm/README.md @@ -21,6 +21,8 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m | secret.rustfs.access_key | RustFS Access Key ID | `rustfsadmin` | | secret.rustfs.secret_key | RustFS Secret Key ID | `rustfsadmin` | | storageclass.name | The name for StorageClass. | `local-path` | +| storageclass.dataStorageSize | The storage size for data PVC. | `256Mi` | +| storageclass.logStorageSize | The storage size for log PVC. | `256Mi` | | ingress.className | Specify the ingress class, traefik or nginx. | `nginx` | diff --git a/helm/rustfs/Chart.yaml b/helm/rustfs/Chart.yaml index 7847f7ac..2cc92efa 100644 --- a/helm/rustfs/Chart.yaml +++ b/helm/rustfs/Chart.yaml @@ -21,4 +21,4 @@ version: 1.0.3 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.0.0-alpha.72" +appVersion: "1.0.0-alpha.73" diff --git a/helm/rustfs/templates/pvc.yaml b/helm/rustfs/templates/pvc.yaml index 735d3302..1cab744d 100644 --- a/helm/rustfs/templates/pvc.yaml +++ b/helm/rustfs/templates/pvc.yaml @@ -8,7 +8,7 @@ spec: storageClassName: {{ .Values.storageclass.name }} resources: requests: - storage: {{ .Values.storageclass.size }} + storage: {{ .Values.storageclass.dataStorageSize }} --- apiVersion: v1 @@ -20,5 +20,5 @@ spec: storageClassName: {{ .Values.storageclass.name }} resources: requests: - storage: {{ .Values.storageclass.size }} + storage: {{ .Values.storageclass.logStorageSize }} {{- end }} \ No newline at end of file diff --git a/helm/rustfs/templates/statefulset.yaml b/helm/rustfs/templates/statefulset.yaml index 48295367..931cfff4 100644 --- a/helm/rustfs/templates/statefulset.yaml +++ b/helm/rustfs/templates/statefulset.yaml @@ -122,7 +122,7 @@ spec: storageClassName: {{ $.Values.storageclass.name }} resources: requests: - storage: {{ $.Values.storageclass.size}} + storage: {{ $.Values.storageclass.logStorageSize}} {{- if eq (int .Values.replicaCount) 4 }} {{- range $i := until (int .Values.replicaCount) }} - metadata: @@ -132,7 +132,7 @@ spec: storageClassName: {{ $.Values.storageclass.name }} resources: requests: - storage: {{ $.Values.storageclass.size}} + storage: {{ $.Values.storageclass.dataStorageSize}} {{- end }} {{- else if eq (int .Values.replicaCount) 16 }} - metadata: @@ -142,6 +142,6 @@ spec: storageClassName: {{ $.Values.storageclass.name }} resources: requests: - storage: {{ $.Values.storageclass.size}} + storage: {{ $.Values.storageclass.dataStorageSize}} {{- end }} {{- end }} diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index 3cf2f8ad..17d23c43 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -147,6 +147,7 @@ affinity: {} storageclass: name: local-path - size: 256Mi + dataStorageSize: 256Mi + logStorageSize: 256Mi extraManifests: []