Deploy minio to suppport read only file systems
Signed-off-by: Thomas Runyon <runyontr@gmail.com>pull/566/head
parent
f1e82a2fe3
commit
fb0696d0c3
|
@ -31,6 +31,8 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: storage
|
- name: storage
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
- name: config
|
||||||
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
- name: minio
|
- name: minio
|
||||||
image: minio/minio:latest
|
image: minio/minio:latest
|
||||||
|
@ -38,6 +40,7 @@ spec:
|
||||||
args:
|
args:
|
||||||
- server
|
- server
|
||||||
- /storage
|
- /storage
|
||||||
|
- --config-dir=/config
|
||||||
env:
|
env:
|
||||||
- name: MINIO_ACCESS_KEY
|
- name: MINIO_ACCESS_KEY
|
||||||
value: "minio"
|
value: "minio"
|
||||||
|
@ -48,6 +51,8 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: storage
|
- name: storage
|
||||||
mountPath: "/storage"
|
mountPath: "/storage"
|
||||||
|
- name: config
|
||||||
|
mountPath: "/config"
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -94,6 +99,9 @@ spec:
|
||||||
name: minio-setup
|
name: minio-setup
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
- name: mc
|
- name: mc
|
||||||
image: minio/mc:latest
|
image: minio/mc:latest
|
||||||
|
@ -101,4 +109,7 @@ spec:
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -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"
|
||||||
|
|
Loading…
Reference in New Issue