PFEE/dashboard-sqdc/k8s/deployment.yaml
Alexis Bruneteau 02c41b9f4e 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>
2025-10-22 12:59:13 +02:00

63 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sqdc-dashboard
namespace: sqdc-dashboard
labels:
app: sqdc-dashboard
spec:
replicas: 2
selector:
matchLabels:
app: sqdc-dashboard
template:
metadata:
labels:
app: sqdc-dashboard
spec:
imagePullSecrets:
- name: registry-credentials
containers:
- name: dashboard
image: gitea.vidoks.fr/sortifal/pfee:latest
imagePullPolicy: Always
ports:
- containerPort: 80
name: http
protocol: TCP
- containerPort: 3001
name: api
protocol: TCP
env:
- name: NODE_ENV
value: "production"
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 2
volumeMounts:
- name: database
mountPath: /app/database
volumes:
- name: database
emptyDir: {}