Skip to content

Commit 5f0761f

Browse files
committed
fix: minio TLS
1 parent d38622c commit 5f0761f

File tree

6 files changed

+756
-3
lines changed

6 files changed

+756
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
default_language_version:
33
node: system
44

5-
exclude: '^stacks/_templates/minio-tls/rendered-chart\.yaml$'
5+
exclude: '^stacks/_templates/minio(-distributed)?-tls/rendered-chart\.yaml$'
66

77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks

demos/data-lakehouse-iceberg-trino-spark/load-test-data.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ spec:
99
containers:
1010
- name: load-test-data
1111
image: "bitnami/minio:2024-debian-12"
12+
env:
13+
- name: MC_INSECURE
14+
value: "true"
1215
# Please try to order the load jobs from small to large datasets
1316
command:
1417
- bash
1518
- -xeuo
1619
- pipefail
1720
- -c
1821
- |
19-
mc alias set minio https://minio:9000/ $(cat /minio-s3-credentials/accessKey) $(cat /minio-s3-credentials/secretKey)
22+
mc alias set minio https://minio.default.svc.cluster.local:9000/ $(cat /minio-s3-credentials/accessKey) $(cat /minio-s3-credentials/secretKey)
2023
cd /tmp
2124
2225
curl -sO https://repo.stackable.tech/repository/misc/datasets/open-postcode-geo/open-postcode-geo.csv
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# MinIO with TLS from secret-operator
2+
3+
MinIO has a severe limitation whereby the TLS certificates must be named `public.crt`
4+
and `private.key`. This goes against Kubernetes naming of `tls.crt` and `tls.key`.
5+
6+
The upstream minio chart is also too limited:
7+
8+
- No way to add initContainers (to rename cert files in a shared volume).
9+
- No way to edit the container command (to rename cert files before starting minio).
10+
11+
Therefore, we will render the upstream chart here, and then apply the necessary
12+
customizations on top.
13+
14+
```yaml
15+
helm template minio minio/minio -f values.yaml > rendered-chart.yaml
16+
```

0 commit comments

Comments
 (0)