From 26a0b9630ce61163cd7b6d408dacc222978ac314 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Sep 2024 07:59:16 +0100 Subject: [PATCH] testing with a pvc on flyimg --- apps/production/flyimg/flyimg.yaml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/apps/production/flyimg/flyimg.yaml b/apps/production/flyimg/flyimg.yaml index ede0b27..ba127d8 100644 --- a/apps/production/flyimg/flyimg.yaml +++ b/apps/production/flyimg/flyimg.yaml @@ -24,15 +24,35 @@ spec: resources: requests: cpu: 50m - memory: 200Mi + memory: 100Mi limits: - cpu: 500m - memory: 300Mi + cpu: 100m + memory: 250Mi + volumeMounts: + - name: flyimg-storage + mountPath: /var/www/html/web/uploads + volumes: + - name: flyimg-storage + persistentVolumeClaim: + claimName: flyimg-pvc +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: flyimg-pvc + namespace: public-services +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi --- apiVersion: v1 kind: Service metadata: name: flyimg-service + namespace: public-services spec: type: ClusterIP ports: