From fb0696d0c33efcc17623424266f31cafaf907a12 Mon Sep 17 00:00:00 2001 From: Thomas Runyon Date: Thu, 21 Jun 2018 16:46:22 -0400 Subject: [PATCH] Deploy minio to suppport read only file systems Signed-off-by: Thomas Runyon --- examples/minio/00-minio-deployment.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/examples/minio/00-minio-deployment.yaml b/examples/minio/00-minio-deployment.yaml index 78a8ca233..74d593111 100644 --- a/examples/minio/00-minio-deployment.yaml +++ b/examples/minio/00-minio-deployment.yaml @@ -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"