From 79ade66f4e59b737b6d4a55712ed3b1626555ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Wed, 12 Jun 2024 09:29:34 +0200 Subject: [PATCH] Move minio to NFS --- services/minio/minio.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/services/minio/minio.yml b/services/minio/minio.yml index ebbb84308..3fc38c91e 100644 --- a/services/minio/minio.yml +++ b/services/minio/minio.yml @@ -31,6 +31,9 @@ spec: operator: In values: - minio + securityContext: + fsGroup: 65534 + fsGroupChangePolicy: "OnRootMismatch" containers: - name: minio image: docker.io/minio/minio:RELEASE.2022-10-24T18-35-07Z @@ -63,6 +66,17 @@ spec: effect: "NoExecute" volumes: - name: data - hostPath: - path: /mnt/data - type: Directory + persistentVolumeClaim: + claimName: minio-pv-claim +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: minio-pv-claim +spec: + storageClassName: nfs-hdd + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Ti