Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3ba36e3
Current Minio, with tag managed through Kustomize
solsson Aug 12, 2021
4eb91da
Breaking, new field names for auth using the minio secret
solsson Aug 12, 2021
2a801d1
The DIRECTORIES arg is mandatory now
solsson Aug 12, 2021
95baba6
Two kinds of expansion in one arg, minio's and k8s's respectively
solsson Aug 12, 2021
4bac7d1
This base is legacy, ystack should use ./base directly
solsson Aug 12, 2021
5acf0ab
Merge remote-tracking branch 'origin/master' into new-start-args-and-…
solsson Nov 6, 2021
1d434bc
Changes to Component so legacyuser can be added independet of base
solsson Nov 6, 2021
faed8d3
Auth defaults to minioadmin:minioadmin
solsson Nov 6, 2021
20257ea
Adds a base for creating buckets
solsson Nov 6, 2021
da676ae
Adds public upload and/or download to bucket create job
solsson Nov 6, 2021
c4732cc
Today's bug fix release
solsson Nov 9, 2021
dc9dcad
Merge branch 'master' into new-start-args-and-user
solsson Dec 20, 2021
6664af4
Merge branch 'master' into new-start-args-and-user
solsson Dec 21, 2021
aa40868
possibly image modification is only meant for override at top level
solsson Dec 21, 2021
b4fc2c0
Security Bugfix Release
solsson Dec 28, 2021
7bf3ce1
Minor bugfix release
solsson Dec 29, 2021
f9933ef
Merge branch 'master' into new-start-args-and-user
solsson Jan 9, 2022
d89f14d
Current mc
solsson Jan 9, 2022
ff3ad22
Merge branch 'master' into new-start-args-and-users
solsson Jun 4, 2022
4954c78
Current mc
solsson Jun 4, 2022
31c1baf
A few bugfix releases
solsson Jun 11, 2022
e8c2d66
Current mc
solsson Jun 11, 2022
d2c4f68
Bugfix release
solsson Jun 12, 2022
498211d
Feature releases included
solsson Nov 12, 2022
b1eda19
Minor Feature Release
solsson Dec 31, 2022
931269a
Minor Feature and Bugfix Release
solsson Jan 6, 2023
cfd1966
Minor Bugfix Release
solsson Jan 8, 2023
e532453
Current minio
solsson Jun 11, 2023
0cb3d1c
updates minio to latest, security and bugfix release
solsson Jul 18, 2023
b72655c
Current Minio and mc
solsson Oct 21, 2023
d585756
Current minio and mc
solsson Dec 8, 2023
72a7e73
Merge branch origin/master into new-start-args-and-user
solsson Jul 23, 2025
41d5651
simplifies image mirroring for current tag
solsson Jul 23, 2025
308912f
untested, for image mirroring, minio 2025-07-18T21-56-31Z
solsson Jul 23, 2025
43cfc62
mirror mc too
solsson Jul 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- new-start-args-and-user

jobs:
publish:
Expand All @@ -29,18 +30,19 @@ jobs:
-
uses: imjasonh/[email protected]
-
name: Get minio target image
id: imageMinioMirror
name: Get current minio tag
id: imageMinioTag
uses: mikefarah/[email protected]
with:
cmd: yq '.spec.template.spec.containers[0].image' base/minio-statefulset.yaml
cmd: yq '.images[0].newTag | sub("(.*)@.*", "${1}")' base/kustomization.yaml
-
name: Get minio official image
id: imageMinioFrom
name: Get current mc tag
id: imageMcTag
uses: mikefarah/[email protected]
with:
cmd: echo ${{ steps.imageMinioMirror.outputs.result }} | sed 's|ghcr.io/yolean|docker.io/minio|'
cmd: yq '.images[0].newTag | sub("(.*)@.*", "${1}")' bucket-create/kustomization.yaml
-
run: |
crane cp docker.io/minio/minio:RELEASE.2022-01-03T18-22-58Z ghcr.io/yolean/minio:RELEASE.2022-01-03T18-22-58Z
crane cp ${{ steps.imageMinioFrom.outputs.result }} ${{ steps.imageMinioMirror.outputs.result }}
crane cp docker.io/minio/minio:${{ steps.imageMinioTag.outputs.result }} ghcr.io/yolean/minio:${{ steps.imageMinioTag.outputs.result }}
crane cp docker.io/minio/mc:${{ steps.imageMcTag.outputs.result }} ghcr.io/yolean/mc:${{ steps.imageMcTag.outputs.result }}
5 changes: 5 additions & 0 deletions base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

images:
- name: minio/minio
newName: ghcr.io/yolean/minio
newTag: RELEASE.2025-07-18T21-56-31Z@sha256:da0fe26595711d0fb93dd28e24552520f68897195f4a23f5a17ffa9924ec3fac

resources:
- minio-hl-svc.yaml
- minio-statefulset.yaml
10 changes: 5 additions & 5 deletions base/minio-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ spec:
spec:
containers:
- name: minio
image: ghcr.io/yolean/minio:RELEASE.2022-06-03T01-40-53Z
image: minio/minio
args:
- server
env:
- name: MINIO_PROMETHEUS_AUTH_TYPE
value: public
- name: MINIO_BROWSER
value: "off"
- name: MINIO_ACCESS_KEY
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
name: minio
key: accesskey
- name: MINIO_SECRET_KEY
key: rootuser
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: minio
key: secretkey
key: rootpassword
ports:
- containerPort: 9000
protocol: TCP
Expand Down
5 changes: 0 additions & 5 deletions blobs-v2-scale-8/kustomization.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions blobs-v2-scale-8/minio-scale8.yaml

This file was deleted.

65 changes: 65 additions & 0 deletions bucket-create/bucket-create-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
apiVersion: batch/v1
kind: Job
metadata:
name: bucket-create
spec:
template:
metadata:
annotations:
buckets: >-
testbucket001
public: >-
upload
download
spec:
containers:
- name: mc
image: minio/mc
env:
- name: MINIO_HOST
value: http://minio:9000
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
name: minio
key: rootuser
optional: true
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: minio
key: rootpassword
optional: true
- name: SQS_ARN
#value: arn:minio:sqs::_:kafka
- name: BUCKETS
valueFrom:
fieldRef:
fieldPath: metadata.annotations['buckets']
- name: PUBLIC
valueFrom:
fieldRef:
fieldPath: metadata.annotations['public']
command:
- /bin/sh
- -cex
- |
[ -n "$MINIO_ROOT_USER" ] || MINIO_ROOT_USER=minioadmin
[ -n "$MINIO_ROOT_PASSWORD" ] || MINIO_ROOT_PASSWORD=minioadmin
mc --no-color config host add minio $MINIO_HOST $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD
for BUCKET in $BUCKETS; do
mc --no-color stat minio/$BUCKET || mc --no-color mb minio/$BUCKET
for POLICY in $PUBLIC; do
if [ "upload" = "$POLICY" ]; then
mc --no-color policy list minio/$BUCKET | grep '/* => writedonly' || \
mc --no-color policy set upload minio/$BUCKET
fi
if [ "download" = "$POLICY" ]; then
mc --no-color policy list minio/$BUCKET | grep '/* => readonly' || \
mc --no-color policy set download minio/$BUCKET
fi
done
mc --no-color ls minio/$BUCKET
done
restartPolicy: Never
backoffLimit: 5
10 changes: 10 additions & 0 deletions bucket-create/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- bucket-create-job.yaml

images:
- name: minio/mc
newName: ghcr.io/yolean/mc
newTag: RELEASE.2025-07-16T15-35-03Z@sha256:d5bccfe71e95a34b25d626d86621930342553657e8776833b65ae0bc63cf4928
5 changes: 5 additions & 0 deletions legacyuser/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

patchesStrategicMerge:
- minio-legacyuser.yaml
28 changes: 28 additions & 0 deletions legacyuser/minio-legacyuser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: minio
spec:
template:
spec:
containers:
- name: minio
env:
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
optional: true
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
optional: true
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: minio
key: accesskey
- name: MINIO_SECRET_KEY
valueFrom:
secretKeyRef:
name: minio
key: secretkey
3 changes: 1 addition & 2 deletions scale-1/kustomization.yaml → scale-8/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Kustomization

resources:
- ../base
- minio-service.yaml

patchesStrategicMerge:
- minio-scale1.yaml
- minio-scale8.yaml
18 changes: 18 additions & 0 deletions scale-8/minio-scale8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: minio
spec:
replicas: 8 # Note, insert N-1 in the expansion below
template:
spec:
containers:
- name: minio
args:
- server
- http://minio-{0...7}.minio-hl-svc.$(POD_NAMESPACE).svc.cluster.local/export
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
18 changes: 18 additions & 0 deletions standalone/auth-default-insecure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: minio
spec:
template:
spec:
containers:
- name: minio
env:
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
optional: true
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
optional: true
10 changes: 10 additions & 0 deletions standalone/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../base
- minio-service.yaml

patchesStrategicMerge:
- minio-standalone.yaml
- auth-default-insecure.yaml
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion ystack-scale-1/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ kind: Kustomization

namespace: ystack

components:
- ../legacyuser

resources:
- ../scale-1
- ../standalone
Loading