fix: Replace PVC with emptyDir to resolve pod pending issue

- Remove PersistentVolumeClaim definition from deployment.yaml
- Replace persistentVolumeClaim volume with emptyDir for temporary storage
- Database files will be stored in pod memory/disk (ephemeral)
- Pods can now schedule without waiting for storage provisioning

Note: Data is not persistent across pod restarts. For production, implement proper storage class or migrate to persistent storage solution.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Alexis Bruneteau 2025-10-22 12:59:13 +02:00
parent 9420975f76
commit 02c41b9f4e
2 changed files with 2 additions and 15 deletions

View File

@ -59,18 +59,4 @@ spec:
mountPath: /app/database
volumes:
- name: database
persistentVolumeClaim:
claimName: sqdc-dashboard-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sqdc-dashboard-pvc
namespace: sqdc-dashboard
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
emptyDir: {}

View File

@ -9,6 +9,7 @@ resources:
- service.yaml
- ingress.yaml
- configmap.yaml
# Note: PVC removed - using emptyDir for temporary storage
commonLabels:
app: sqdc-dashboard