Skip to content

Commit

Permalink
Add init container that will pre-create buckets in minio
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeev B committed Apr 9, 2021
1 parent eedfa39 commit eb56436
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
11 changes: 10 additions & 1 deletion deployment/sandbox/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3060,14 +3060,23 @@ spec:
value: minio
- name: MINIO_SECRET_KEY
value: miniostorage
image: minio/minio:RELEASE.2020-12-16T05-05-17Z
image: minio/minio:RELEASE.2021-04-06T23-11-00Z
name: minio
ports:
- containerPort: 9000
name: minio
volumeMounts:
- mountPath: /data
name: minio-storage
initContainers:
- command:
- mkdir
- /data/my-s3-bucket
image: minio/minio:RELEASE.2021-04-06T23-11-00Z
name: create-bucket
volumeMounts:
- mountPath: /data
name: minio-storage
volumes:
- emptyDir: {}
name: minio-storage
Expand Down
11 changes: 10 additions & 1 deletion deployment/test/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -880,14 +880,23 @@ spec:
value: minio
- name: MINIO_SECRET_KEY
value: miniostorage
image: minio/minio:RELEASE.2020-12-16T05-05-17Z
image: minio/minio:RELEASE.2021-04-06T23-11-00Z
name: minio
ports:
- containerPort: 9000
name: minio
volumeMounts:
- mountPath: /data
name: minio-storage
initContainers:
- command:
- mkdir
- /data/my-s3-bucket
image: minio/minio:RELEASE.2021-04-06T23-11-00Z
name: create-bucket
volumeMounts:
- mountPath: /data
name: minio-storage
volumes:
- emptyDir: {}
name: minio-storage
Expand Down
4 changes: 4 additions & 0 deletions kustomize/base/addons/storage/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
resources:
- storage.yaml

images:
- name: minio/minio
newTag: RELEASE.2021-04-06T23-11-00Z
11 changes: 10 additions & 1 deletion kustomize/base/addons/storage/storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@ spec:
volumes:
- name: minio-storage
emptyDir: {}
initContainers:
- image: minio/minio
name: create-bucket
command:
- mkdir
- /data/my-s3-bucket
volumeMounts:
- name: minio-storage
mountPath: /data
containers:
- image: "minio/minio:RELEASE.2020-12-16T05-05-17Z"
- image: minio/minio
name: minio
env:
- name: MINIO_ACCESS_KEY
Expand Down

0 comments on commit eb56436

Please sign in to comment.