testing with a pvc on flyimg

This commit is contained in:
Lee 2024-09-23 07:59:16 +01:00
parent 0e51f18376
commit 26a0b9630c

@ -24,15 +24,35 @@ spec:
resources: resources:
requests: requests:
cpu: 50m cpu: 50m
memory: 200Mi memory: 100Mi
limits: limits:
cpu: 500m cpu: 100m
memory: 300Mi 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 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: flyimg-service name: flyimg-service
namespace: public-services
spec: spec:
type: ClusterIP type: ClusterIP
ports: ports: