Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deis-minio): store minio data on a persistent volume #46

Closed
wants to merge 9 commits into from
13 changes: 13 additions & 0 deletions manifests/deis-minio-pv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kind: PersistentVolume
apiVersion: v1
metadata:
name: deis-minio-data
labels:
type: local
spec:
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/minio/data
12 changes: 12 additions & 0 deletions manifests/deis-minio-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: deis-minio-data
labels:
type: local
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
10 changes: 8 additions & 2 deletions manifests/deis-minio-rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ spec:
# not running with ssl yet
# - "--cert=/var/run/secrets/deis/minio/ssl/access-cert"
# - "--key=/var/run/secrets/deis/minio/ssl/access-pem"
- "server"
- "/home/minio/"
- server
- /mnt/minio/data
volumeMounts:
- name: minio-admin
mountPath: /var/run/secrets/deis/minio/admin
readOnly: true
- name: minio-user
mountPath: /var/run/secrets/deis/minio/user
readOnly: true
- name: minio-data
mountPath: /mnt/minio/data
# - name: minio-ssl
# mountPath: /var/run/secrets/deis/minio/ssl
# readOnly: true
Expand All @@ -45,6 +47,10 @@ spec:
- name: minio-user
secret:
secretName: minio-user
- name: minio-data
persistentVolumeClaim:
claimName: deis-minio-data

# - name: minio-ssl
# secret:
# secretName: minio-ssl
1 change: 1 addition & 0 deletions rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update -y && apt-get install -y -q curl
RUN curl -f -SL https://dl.minio.io:9000/updates/2015/Sept/linux-amd64/mc -o /usr/bin/mc
RUN chmod 755 /usr/bin/mc
COPY . /
RUN mkdir -p /mnt/minio/data && chmod 777 /mnt/minio/data
USER minio
RUN mkdir /home/minio/.minio
ENTRYPOINT ["boot"]