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:
parent
9420975f76
commit
02c41b9f4e
@ -59,18 +59,4 @@ spec:
|
|||||||
mountPath: /app/database
|
mountPath: /app/database
|
||||||
volumes:
|
volumes:
|
||||||
- name: database
|
- name: database
|
||||||
persistentVolumeClaim:
|
emptyDir: {}
|
||||||
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
|
|
||||||
|
|||||||
@ -9,6 +9,7 @@ resources:
|
|||||||
- service.yaml
|
- service.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- configmap.yaml
|
- configmap.yaml
|
||||||
|
# Note: PVC removed - using emptyDir for temporary storage
|
||||||
|
|
||||||
commonLabels:
|
commonLabels:
|
||||||
app: sqdc-dashboard
|
app: sqdc-dashboard
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user