Skip to content

Commit 8066d07

Browse files
[minio] add more configuration options for the minio server (CloudPirates-io#189)
* [minio] add more configuration options for the minio server * Update CHANGELOG.md Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 24426ab commit 8066d07

File tree

6 files changed

+122
-21
lines changed

6 files changed

+122
-21
lines changed

charts/minio/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## 0.2.3 (2025-09-15)
3+
## 0.2.4 (2025-09-30)
44

5-
* [minio] Minio set deployment update strategy ([#87](https://github.com/CloudPirates-io/helm-charts/pull/87))
5+
* [minio] add more configuration options for the minio server ([#189](https://github.com/CloudPirates-io/helm-charts/pull/189))
66

77
## <small>0.2.1 (2025-09-08)</small>
88

charts/minio/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: minio
33
description: High Performance Object Storage compatible with Amazon S3 APIs
44
type: application
5-
version: 0.2.3
5+
version: 0.2.4
66
appVersion: "2025.09.07"
77
keywords:
88
- minio

charts/minio/README.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ The following table lists the configurable parameters of the MinIO chart and the
7676

7777
### MinIO image configuration
7878

79-
| Parameter | Description | Default |
80-
| ------------------ | ----------------------------------------------------------------------------------------------------- | -------------------------------- |
81-
| `image.registry` | MinIO image registry | `docker.io` |
82-
| `image.repository` | MinIO image repository | `minio/minio` |
83-
| `image.tag` | MinIO image tag (immutable tags are recommended) | `"RELEASE.2024-08-17T01-24-54Z"` |
84-
| `image.useCpuV1` | image.useCpuV1 Use the Minio image tags suitable for old cpus (see https://github.com/minio/minio/issues/18365) | `false` |
85-
| `image.tagCpuV1` | image.useCpuV1 Use the Minio image tags suitable for old cpus (see https://github.com/minio/minio/issues/18365) | `RELEASE.2025-09-07T16-13-09Z-cpuv1@sha256:13582eff79c6605a2d315bdd0e70164142ea7e98fc8411e9e10d089502a6d883` |
86-
| `image.imagePullPolicy` | MinIO image pull policy | `IfNotPresent` |
79+
| Parameter | Description | Default |
80+
| ----------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
81+
| `image.registry` | MinIO image registry | `docker.io` |
82+
| `image.repository` | MinIO image repository | `minio/minio` |
83+
| `image.tag` | MinIO image tag (immutable tags are recommended) | `"RELEASE.2024-08-17T01-24-54Z"` |
84+
| `image.useCpuV1` | image.useCpuV1 Use the Minio image tags suitable for old cpus (see https://github.com/minio/minio/issues/18365) | `false` |
85+
| `image.tagCpuV1` | image.useCpuV1 Use the Minio image tags suitable for old cpus (see https://github.com/minio/minio/issues/18365) | `RELEASE.2025-09-07T16-13-09Z-cpuv1@sha256:13582eff79c6605a2d315bdd0e70164142ea7e98fc8411e9e10d089502a6d883` |
86+
| `image.imagePullPolicy` | MinIO image pull policy | `IfNotPresent` |
8787

8888
### MinIO Authentication
8989

@@ -97,13 +97,21 @@ The following table lists the configurable parameters of the MinIO chart and the
9797

9898
### MinIO configuration
9999

100-
| Parameter | Description | Default |
101-
| ----------------------- | --------------------------------------------------------- | ------- |
102-
| `config.region` | MinIO server default region | `""` |
103-
| `config.browserEnabled` | Enable MinIO web browser | `true` |
104-
| `config.domain` | MinIO server domain | `""` |
105-
| `config.serverUrl` | MinIO server URL for console | `""` |
106-
| `config.extraEnvVars` | Extra environment variables to be set on MinIO containers | `[]` |
100+
| Parameter | Description | Default |
101+
| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
102+
| `config.region` | MinIO server default region | `""` |
103+
| `config.browserEnabled` | Enable MinIO web browser | `true` |
104+
| `config.domain` | MinIO server domain | `""` |
105+
| `config.serverUrl` | MinIO server URL for console | `""` |
106+
| `config.minioOpts` | String of parameteres to use when starting the MinIO Server (example: '--console-address=":9001"') | `""` |
107+
| `config.minioVolumes` | The directories or drives the minio server uses as the storage backend (example: '/mnt/drive1/minio') | `""` |
108+
| `config.minioConfigEnvFile` | Specifies the full path to the file the MinIO server process uses for loading environment variables | `""` |
109+
| `config.minioScannerSpeed` | Manage the maximum wait period for the scanner when balancing MinIO read/write performance to scanner processes (fastest, fast, default, slow, slowest) | `""` |
110+
| `config.minioCompressionEnabled` | Set to on to enable data compression for new objects. Defaults to off. | `""` |
111+
| `config.minioCompressionAllowEncryption` | Set to on to encrypt objects after compressing them. Defaults to off. | `""` |
112+
| `config.minioCompressionExtensions` | Comma-separated list of the file extensions to compress. Setting a new list of file extensions replaces the previously configured list. Defaults to "*" | `""` |
113+
| `config.minioCompressionMimeTypes` | Comma-separated list of the MIME types to compress. Setting a new list of types replaces the previously configured list. Defaults to "text/*, application/json, application/xml, binary/octet-stream" | `""` |
114+
| `config.extraEnvVars` | Extra environment variables to be set on MinIO containers | `[]` |
107115

108116
### Deployment configuration
109117

@@ -215,9 +223,9 @@ The following table lists the configurable parameters of the MinIO chart and the
215223

216224
### Extra Configuration Parameters
217225

218-
| Parameter | Description | Default |
219-
| ------------------- | ----------------------------------------------------------------------------------- | ------- |
220-
| `extraObjects` | A list of additional Kubernetes objects to deploy alongside the release | `[]` |
226+
| Parameter | Description | Default |
227+
| -------------- | ----------------------------------------------------------------------- | ------- |
228+
| `extraObjects` | A list of additional Kubernetes objects to deploy alongside the release | `[]` |
221229

222230
#### Extra Objects
223231

charts/minio/templates/deployment.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,39 @@ spec:
7373
- name: MINIO_SERVER_URL
7474
value: {{ .Values.config.serverUrl | quote }}
7575
{{- end }}
76+
{{- if .Values.config.minioOpts }}
77+
- name: MINIO_OPTS
78+
value: {{ .Values.config.minioOpts | quote }}
79+
{{- end }}
80+
{{- if .Values.config.minioVolumes }}
81+
- name: MINIO_VOLUMES
82+
value: {{ .Values.config.minioVolumes | quote }}
83+
{{- end }}
84+
{{- if .Values.config.minioConfigEnvFile }}
85+
- name: MINIO_CONFIG_ENV_FILE
86+
value: {{ .Values.config.minioConfigEnvFile | quote }}
87+
{{- end }}
88+
{{- if .Values.config.minioScannerSpeed }}
89+
- name: MINIO_SCANNER_SPEED
90+
value: {{ .Values.config.minioScannerSpeed | quote }}
91+
{{- end }}
92+
{{- if .Values.config.minioCompressionEnabled }}
93+
- name: MINIO_COMPRESSION_ENABLE
94+
value: {{ .Values.config.minioCompressionEnabled | quote }}
95+
{{- end }}
96+
{{- if and .Values.config.minioCompressionEnabled .Values.config.minioCompressionAllowEncryption }}
97+
- name: MINIO_COMPRESSION_ALLOW_ENCRYPTION
98+
value: {{ .Values.config.minioCompressionAllowEncryption | quote }}
99+
{{- end }}
100+
{{- if and .Values.config.minioCompressionEnabled .Values.config.minioCompressionExtensions }}
101+
- name: MINIO_COMPRESSION_EXTENSIONS
102+
value: {{ .Values.config.minioCompressionExtensions | quote }}
103+
{{- end }}
104+
{{- if and .Values.config.minioCompressionEnabled .Values.config.minioCompressionMimeTypes }}
105+
- name: MINIO_COMPRESSION_MIME_TYPES
106+
value: {{ .Values.config.minioCompressionMimeTypes | quote }}
107+
{{- end }}
108+
76109
{{- with .Values.config.extraEnvVars }}
77110
{{- toYaml . | nindent 12 }}
78111
{{- end }}

charts/minio/values.schema.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,49 @@
117117
"title": "MinIO Server URL",
118118
"description": "MinIO server URL for console"
119119
},
120+
"minioOpts": {
121+
"type": "string",
122+
"title": "MinIO Server Options",
123+
"description": "String of parameteres to use when starting the MinIO Server"
124+
},
125+
"minioVolumes": {
126+
"type": "string",
127+
"title": "MinIO Volume directories",
128+
"description": "The directories or drives the minio server uses as the storage backend"
129+
},
130+
"minioConfigEnvFile": {
131+
"type": "string",
132+
"title": "MinIO Config Environment File",
133+
"description": "Path to environment file for MinIO to load variables from"
134+
},
135+
"minioScannerSpeed": {
136+
"type": "string",
137+
"enum": ["fastest", "fast", "default", "slow", "slowest", ""],
138+
"title": "MinIO Scanner Speed",
139+
"description": "Manage the maximum wait period for the scanner when balancing MinIO read/write performance to scanner processes"
140+
},
141+
"minioCompressionEnabled": {
142+
"type": "string",
143+
"enum": ["on", "off", ""],
144+
"title": "MinIO Compression Enabled",
145+
"description": "Set to on to enable data compression for new objects"
146+
},
147+
"minioCompressionAllowEncryption": {
148+
"type": "string",
149+
"enum": ["on", "off", ""],
150+
"title": "MinIO Compression Allow Encryption",
151+
"description": "Set to on to encrypt objects after compressing them"
152+
},
153+
"minioCompressionExtensions": {
154+
"type": "string",
155+
"title": "MinIO Compression Extentions",
156+
"description": "Comma-separated list of the file extensions to compress"
157+
},
158+
"minioCompressionMimeTypes": {
159+
"type": "string",
160+
"title": "MinIO Compression MimeTypes",
161+
"description": "Comma-separated list of the MIME types to compress"
162+
},
120163
"extraEnvVars": {
121164
"type": "array",
122165
"title": "Extra Environment Variables",

charts/minio/values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,23 @@ config:
5353
domain: ""
5454
## @param config.serverUrl MinIO server URL for console
5555
serverUrl: ""
56+
## @param config.minioOpts String of parameteres to use when starting the MinIO Server (example: '--console-address=":9001"')
57+
minioOpts: ""
58+
## @param config.minioVolumes The directories or drives the minio server uses as the storage backend (example: '/mnt/drive1/minio')
59+
minioVolumes: ""
60+
## @param config.minioConfigEnvFile Specifies the full path to the file the MinIO server process uses for loading environment variables
61+
minioConfigEnvFile: ""
62+
## @param config.minioScannerSpeed Manage the maximum wait period for the scanner when balancing MinIO read/write performance to scanner processes (fastest, fast, default, slow, slowest)
63+
minioScannerSpeed: ""
64+
## @param config.minioCompressionEnabled Set to on to enable data compression for new objects. Defaults to off.
65+
minioCompressionEnabled: ""
66+
## @param config.minioCompressionAllowEncryption Set to on to encrypt objects after compressing them. Defaults to off.
67+
minioCompressionAllowEncryption: ""
68+
## @param config.minioCompressionExtensions Comma-separated list of the file extensions to compress. Setting a new list of file extensions replaces the previously configured list. Defaults to "*"
69+
minioCompressionExtensions: ""
70+
## @param config.minioCompressionMimeTypes Comma-separated list of the MIME types to compress. Setting a new list of types replaces the previously configured list. Defaults to "text/*, application/json, application/xml, binary/octet-stream"
71+
minioCompressionMimeTypes: ""
72+
5673
## @param config.extraEnvVars Extra environment variables to be set on MinIO containers
5774
extraEnvVars: []
5875

0 commit comments

Comments
 (0)