[stable/minio] Add persistence.existingClaim (#3744)

* minio - add existing PVC

* delete extra {{end}}

* fix trailing space
This commit is contained in:
matjazp
2018-02-20 06:46:38 -08:00
committed by k8s-ci-robot
parent 8102835509
commit ef3ebcd039
5 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Distributed object storage server built for cloud applications and devops.
name: minio
version: 0.5.2
version: 0.5.3
keywords:
- storage
- object-storage
+14
View File
@@ -87,6 +87,7 @@ The following tables lists the configurable parameters of the Minio chart and th
| `servicePort` | Kubernetes port where service is exposed| `9000` |
| `persistence.enabled` | Use persistent volume to store data | `true` |
| `persistence.size` | Size of persistent volume claim | `10Gi` |
| `persistence.existingClaim`| Use an existing PVC to persist data | `nil` |
| `persistence.storageClass` | Type of persistent volume claim | `generic` |
| `persistence.accessMode` | ReadWriteOnce or ReadOnly | `ReadWriteOnce` |
| `persistence.subPath` | Mount a sub directory of the persistent volume if set | `""` |
@@ -176,6 +177,19 @@ $ helm install --set persistence.enabled=false stable/minio
> *"An emptyDir volume is first created when a Pod is assigned to a Node, and exists as long as that Pod is running on that node. When a Pod is removed from a node for any reason, the data in the emptyDir is deleted forever."*
Existing PersistentVolumeClaim
------------------------------
If a Persistent Volume Claim already exists, specify it during installation.
1. Create the PersistentVolume
1. Create the PersistentVolumeClaim
1. Install the chart
```bash
$ helm install --set persistence.existingClaim=PVC_NAME stable/minio
```
NetworkPolicy
-------------
+1 -1
View File
@@ -46,7 +46,7 @@ spec:
- name: export
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ template "minio.fullname" . }}
claimName: {{ .Values.persistence.existingClaim | default (include "minio.fullname" .) }}
{{- else }}
emptyDir: {}
{{- end }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{- if eq .Values.mode "standalone" "shared" }}
{{- if .Values.persistence.enabled }}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
+5
View File
@@ -28,6 +28,11 @@ replicas: 4
persistence:
enabled: true
## A manually managed Persistent Volume and Claim
## Requires persistence.enabled: true
## If defined, PVC must be created manually before volume will be bound
# existingClaim:
## minio data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning