Deploy minio to suppport read only file systems

Signed-off-by: Thomas Runyon <runyontr@gmail.com>
pull/566/head
Thomas Runyon 2018-06-21 16:46:22 -04:00
parent f1e82a2fe3
commit fb0696d0c3
1 changed files with 12 additions and 1 deletions

View File

@ -31,6 +31,8 @@ spec:
volumes:
- name: storage
emptyDir: {}
- name: config
emptyDir: {}
containers:
- name: minio
image: minio/minio:latest
@ -38,6 +40,7 @@ spec:
args:
- server
- /storage
- --config-dir=/config
env:
- name: MINIO_ACCESS_KEY
value: "minio"
@ -48,6 +51,8 @@ spec:
volumeMounts:
- name: storage
mountPath: "/storage"
- name: config
mountPath: "/config"
---
apiVersion: v1
@ -94,6 +99,9 @@ spec:
name: minio-setup
spec:
restartPolicy: OnFailure
volumes:
- name: config
emptyDir: {}
containers:
- name: mc
image: minio/mc:latest
@ -101,4 +109,7 @@ spec:
command:
- /bin/sh
- -c
- "mc config host add ark http://minio:9000 minio minio123 && mc mb -p ark/ark"
- "mc --config-folder=/config config host add ark http://minio:9000 minio minio123 && mc --config-folder=/config mb -p ark/ark"
volumeMounts:
- name: config
mountPath: "/config"