Skip to content

Commit fb79411

Browse files
committed
Merge branch 'main' of https://github.com/stackabletech/demos into bump/nifi-2.2.0-git-registry-client
2 parents 88031ce + b28fd0f commit fb79411

File tree

7 files changed

+145
-22
lines changed

7 files changed

+145
-22
lines changed

demos/data-lakehouse-iceberg-trino-spark/create-nifi-ingestion-job.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ data:
6868
6969
organization = "stackabletech"
7070
repository = "demos"
71-
branch = "bump/nifi-2.2.0-git-registry-client"
72-
version = "bump/nifi-2.2.0-git-registry-client"
71+
branch = "release-25.3"
72+
version = "release-25.3"
7373
directory = "demos/data-lakehouse-iceberg-trino-spark"
7474
flow_name = "LakehouseKafkaIngest"
7575

demos/nifi-kafka-druid-earthquake-data/create-nifi-ingestion-job.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ data:
7777
7878
organization = "stackabletech"
7979
repository = "demos"
80-
branch = "bump/nifi-2.2.0-git-registry-client"
81-
version = "bump/nifi-2.2.0-git-registry-client"
80+
branch = "release-25.3"
81+
version = "release-25.3"
8282
directory = "demos/nifi-kafka-druid-earthquake-data"
8383
flow_name = "IngestEarthquakesToKafka"
8484

demos/nifi-kafka-druid-water-level-data/create-nifi-ingestion-job.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ data:
7777
7878
organization = "stackabletech"
7979
repository = "demos"
80-
branch = "bump/nifi-2.2.0-git-registry-client"
81-
version = "bump/nifi-2.2.0-git-registry-client"
80+
branch = "release-25.3"
81+
version = "release-25.3"
8282
directory = "demos/nifi-kafka-druid-water-level-data"
8383
flow_name = "IngestWaterLevelsToKafka"
8484

demos/signal-processing/create-nifi-ingestion-job.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ data:
8888
8989
organization = "stackabletech"
9090
repository = "demos"
91-
branch = "bump/nifi-2.2.0-git-registry-client"
92-
version = "bump/nifi-2.2.0-git-registry-client"
91+
branch = "release-25.3"
92+
version = "release-25.3"
9393
directory = "demos/signal-processing"
9494
flow_name = "DownloadAndWriteToDB"
9595

demos/trino-taxi-data/load-test-data.yaml

+48-1
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,60 @@ spec:
1010
- name: load-ny-taxi-data
1111
image: "bitnami/minio:2024-debian-12"
1212
# yamllint disable-line rule:line-length
13-
command: ["bash", "-c", "cd /tmp && for month in 2020-01 2020-02 2020-03 2020-04 2020-05 2020-06 2020-07 2020-08 2020-09 2020-10 2020-11 2020-12 2021-01 2021-02 2021-03 2021-04 2021-05 2021-06 2021-07 2021-08 2021-09 2021-10 2021-11 2021-12 2022-01 2022-02 2022-03 2022-04; do curl -O https://repo.stackable.tech/repository/misc/ny-taxi-data/yellow_tripdata_$month.parquet && mc --insecure alias set minio http://minio:9000/ $(cat /minio-s3-credentials/accessKey) $(cat /minio-s3-credentials/secretKey) && mc cp yellow_tripdata_$month.parquet minio/demo/ny-taxi-data/raw/; done"]
13+
command:
14+
- bash
15+
- -ce
16+
- |
17+
# Copy the CA cert from the "tls" SecretClass
18+
cp -v /etc/minio/mc/original_certs/ca.crt /.mc/certs/CAs/public.crt
19+
20+
MINIO_ENDPOINT="https://minio.default.svc.cluster.local:9000/"
21+
MINIO_ACCESS_KEY=$(cat /minio-s3-credentials/accessKey)
22+
MINIO_SECRET_KEY=$(cat /minio-s3-credentials/secretKey)
23+
24+
cd /tmp
25+
for month in \
26+
2020-01 2020-02 2020-03 2020-04 2020-05 2020-06 2020-07 2020-08 2020-09 2020-10 \
27+
2020-11 2020-12 2021-01 2021-02 2021-03 2021-04 2021-05 2021-06 2021-07 2021-08 \
28+
2021-09 2021-10 2021-11 2021-12 2022-01 2022-02 2022-03 2022-04; do
29+
curl -O "https://repo.stackable.tech/repository/misc/ny-taxi-data/yellow_tripdata_$month.parquet"
30+
mc alias set minio "$MINIO_ENDPOINT" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
31+
mc cp "yellow_tripdata_$month.parquet" minio/demo/ny-taxi-data/raw/
32+
done
1433
volumeMounts:
1534
- name: minio-s3-credentials
1635
mountPath: /minio-s3-credentials
36+
# Mount the certificate generated by the secret-operator
37+
- name: tls
38+
mountPath: /etc/minio/mc/original_certs
39+
# On startup, we will rename the certs and move them here:
40+
- mountPath: /.mc/certs/CAs
41+
name: certs
42+
1743
volumes:
1844
- name: minio-s3-credentials
1945
secret:
2046
secretName: minio-s3-credentials
47+
# Request a TLS certificate from the secret-operator
48+
- name: tls
49+
ephemeral:
50+
volumeClaimTemplate:
51+
metadata:
52+
annotations:
53+
secrets.stackable.tech/class: tls
54+
secrets.stackable.tech/scope: |-
55+
service=minio
56+
spec:
57+
storageClassName: secrets.stackable.tech
58+
accessModes:
59+
- ReadWriteOnce
60+
resources:
61+
requests:
62+
storage: 1
63+
# Create an in-memory emptyDir to copy the certs to (to avoid permission errors)
64+
- name: certs
65+
emptyDir:
66+
sizeLimit: 5Mi
67+
medium: Memory
2168
restartPolicy: OnFailure
2269
backoffLimit: 50

stacks/_templates/minio-tls/rendered-chart.yaml

+55-13
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ data:
135135
}
136136
137137
# Try connecting to MinIO instance
138-
scheme=http
138+
scheme=https
139139
connectToMinio $scheme
140140
141141
@@ -223,7 +223,7 @@ data:
223223
}
224224
225225
# Try connecting to MinIO instance
226-
scheme=http
226+
scheme=https
227227
connectToMinio $scheme
228228
229229
@@ -291,7 +291,7 @@ data:
291291
}
292292
293293
# Try connecting to MinIO instance
294-
scheme=http
294+
scheme=https
295295
connectToMinio $scheme
296296
297297
@@ -372,7 +372,7 @@ data:
372372
}
373373
374374
# Try connecting to MinIO instance
375-
scheme=http
375+
scheme=https
376376
connectToMinio $scheme
377377
378378
@@ -418,7 +418,7 @@ data:
418418
}
419419
420420
# Try connecting to MinIO instance
421-
scheme=http
421+
scheme=https
422422
connectToMinio $scheme
423423
---
424424
# Source: minio/templates/pvc.yaml
@@ -452,7 +452,7 @@ spec:
452452
type: NodePort
453453
externalTrafficPolicy: "Cluster"
454454
ports:
455-
- name: http
455+
- name: https
456456
port: 9001
457457
protocol: TCP
458458
targetPort: 9001
@@ -475,7 +475,7 @@ spec:
475475
type: NodePort
476476
externalTrafficPolicy: "Cluster"
477477
ports:
478-
- name: http
478+
- name: https
479479
port: 9000
480480
protocol: TCP
481481
targetPort: 9000
@@ -514,7 +514,7 @@ spec:
514514
stackable.tech/vendor: Stackable
515515
annotations:
516516
checksum/secrets: fa63e34a92c817c84057e2d452fa683e66462a57b0529388fb96a57e05f38e57
517-
checksum/config: 2b1e6b6d0485236a84032ab7e9eeee4a7bac29d2b63d3b0260bde76e84626730
517+
checksum/config: ebea49cc4c1bfbd1b156a58bf770a776ff87fe199f642d31c2816b5515112e72
518518
spec:
519519
securityContext:
520520

@@ -549,9 +549,9 @@ spec:
549549
- mountPath: /etc/minio/certs
550550
name: certs
551551
ports:
552-
- name: http
552+
- name: https
553553
containerPort: 9000
554-
- name: http-console
554+
- name: https-console
555555
containerPort: 9001
556556
env:
557557
- name: MINIO_ROOT_USER
@@ -579,7 +579,7 @@ spec:
579579
- name: minio-user
580580
secret:
581581
secretName: minio
582-
582+
583583
- ephemeral:
584584
volumeClaimTemplate:
585585
metadata:
@@ -633,12 +633,38 @@ spec:
633633
name: minio
634634
- secret:
635635
name: minio
636+
- ephemeral:
637+
volumeClaimTemplate:
638+
metadata:
639+
annotations:
640+
secrets.stackable.tech/class: tls
641+
secrets.stackable.tech/scope: service=minio
642+
spec:
643+
accessModes:
644+
- ReadWriteOnce
645+
resources:
646+
requests:
647+
storage: 1
648+
storageClassName: secrets.stackable.tech
649+
name: tls
650+
- emptyDir:
651+
medium: Memory
652+
sizeLimit: 5Mi
653+
name: certs
636654
serviceAccountName: minio-sa
637655
containers:
638656
- name: minio-make-bucket
639657
image: "quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z"
640658
imagePullPolicy: IfNotPresent
641-
command: [ "/bin/sh", "/config/initialize" ]
659+
command:
660+
- "/bin/sh"
661+
- "-ce"
662+
- |
663+
# Copy the CA cert from the "tls" SecretClass
664+
# mkdir -p /etc/minio/mc/certs/CAs
665+
cp -v /etc/minio/mc/original_certs/ca.crt /etc/minio/mc/certs/CAs/public.crt
666+
667+
. /config/initialize
642668
env:
643669
- name: MINIO_ENDPOINT
644670
value: minio
@@ -651,13 +677,25 @@ spec:
651677
mountPath: /tmp
652678
- name: minio-configuration
653679
mountPath: /config
680+
- name: tls
681+
mountPath: /etc/minio/mc/original_certs
682+
- name: certs
683+
mountPath: /etc/minio/mc/certs/CAs
654684
resources:
655685
requests:
656686
memory: 128Mi
657687
- name: minio-make-user
658688
image: "quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z"
659689
imagePullPolicy: IfNotPresent
660-
command: [ "/bin/sh", "/config/add-user" ]
690+
command:
691+
- "/bin/sh"
692+
- "-ce"
693+
- |
694+
# Copy the CA cert from the "tls" SecretClass
695+
# mkdir -p /etc/minio/mc/certs/CAs
696+
cp -v /etc/minio/mc/original_certs/ca.crt /etc/minio/mc/certs/CAs/public.crt
697+
698+
. /config/add-user
661699
env:
662700
- name: MINIO_ENDPOINT
663701
value: minio
@@ -670,6 +708,10 @@ spec:
670708
mountPath: /tmp
671709
- name: minio-configuration
672710
mountPath: /config
711+
- name: tls
712+
mountPath: /etc/minio/mc/original_certs
713+
- name: certs
714+
mountPath: /etc/minio/mc/certs/CAs
673715
resources:
674716
requests:
675717
memory: 128Mi

stacks/_templates/minio-tls/values.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ service:
2020
consoleService:
2121
type: NodePort
2222
nodePort: null
23+
tls:
24+
enabled: true
2325
extraVolumes:
2426
# Request a TLS certificate from the secret-operator
2527
- name: tls
@@ -49,3 +51,35 @@ extraVolumeMounts:
4951
# On startup, we will rename the certs and move them here:
5052
- mountPath: /etc/minio/certs
5153
name: certs
54+
55+
customCommandJob:
56+
extraVolumes:
57+
# Request a TLS certificate from the secret-operator
58+
- name: tls
59+
ephemeral:
60+
volumeClaimTemplate:
61+
metadata:
62+
annotations:
63+
secrets.stackable.tech/class: tls
64+
secrets.stackable.tech/scope: |-
65+
service=minio
66+
spec:
67+
storageClassName: secrets.stackable.tech
68+
accessModes:
69+
- ReadWriteOnce
70+
resources:
71+
requests:
72+
storage: 1
73+
# Create an in-memory emptyDir to copy the certs to (to avoid permission errors)
74+
- name: certs
75+
emptyDir:
76+
sizeLimit: 5Mi
77+
medium: Memory
78+
# WARNING: this is currently only used by the custom-scripts job container. Other containers do not mount these.
79+
extraVolumeMounts:
80+
# Mount the certificate generated by the secret-operator
81+
- name: tls
82+
mountPath: /etc/minio/mc/original_certs
83+
# On startup, we will rename the certs and move them here:
84+
- mountPath: /etc/minio/mc/certs/CAs
85+
name: certs

0 commit comments

Comments
 (0)