Skip to content

Commit

Permalink
Adding PVC to minio (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormachin authored Aug 19, 2023
1 parent 6a96177 commit d7f2021
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/minio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ keywords:
- minio
sources:
home:
dependencies:
- name: local-path-provisioner
condition: local-path-provisioner.enabled
version: "0.0.25"
repository: "https://element84.github.io/filmdrop-k8s-helm-charts/"
15 changes: 15 additions & 0 deletions charts/minio/templates/minio-claim0-persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
{{- include "minio.labels" . | nindent 6 }}
name: minio-claim0
spec:
storageClassName: {{ .Values.storage.storageClassName }}
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.storage.size }}
status: {}
8 changes: 8 additions & 0 deletions charts/minio/templates/minio-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,13 @@ spec:
- containerPort: {{ .Values.container.port }}
- containerPort: {{ .Values.container.servicePort }}
resources: {}
volumeMounts:
- mountPath: /minio
name: minio-claim0
workingDir: /minio
restartPolicy: Always
volumes:
- name: minio-claim0
persistentVolumeClaim:
claimName: minio-claim0
status: {}
11 changes: 11 additions & 0 deletions charts/minio/templates/minio-storage-class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if .Values.storage.retainPersistentVolume -}}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
labels:
{{- include "minio.labels" . | nindent 6 }}
name: minio-retain
provisioner: {{ .Values.storage.provisioner }}
reclaimPolicy: Retain
volumeBindingMode: {{ .Values.storage.volumeBindingMode }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/minio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
nameOverride: ""
fullnameOverride: ""

local-path-provisioner:
enabled: true
storageClass:
provisionerName: filmdrop.io/local-minio-path-provisioner
name: local-path-class-minio

image:
repository: quay.io/minio/minio
tag: latest
Expand All @@ -29,6 +35,12 @@ service:
accessKeyId: bWluaW8=
secretAccessKey: cGFzc3dvcmQ=
endpoint: http://minio.default:9000
storage:
size: 256M
volumeBindingMode: WaitForFirstConsumer
provisioner: filmdrop.io/local-minio-path-provisioner
retainPersistentVolume: true
storageClassName: minio-retain
deployment:
name: minio
replicaCount: 1

0 comments on commit d7f2021

Please sign in to comment.