Files
nutriapp/k8s/deployment.yml
T
joel 77e6aa5973
Build & Deploy NutriApp / build-and-deploy (push) Failing after 5m12s
Fix: usar IP interna del registry (10.43.162.10:5000) en vez de dominio
2026-06-24 10:16:30 +01:00

72 lines
1.6 KiB
YAML

# ─── NutriApp K3s Deployment ─────────────────────────────────
apiVersion: apps/v1
kind: Deployment
metadata:
name: nutriapp
namespace: nutriapp
labels:
app: nutriapp
spec:
replicas: 1
selector:
matchLabels:
app: nutriapp
template:
metadata:
labels:
app: nutriapp
spec:
containers:
- name: nutriapp
image: 10.43.162.10:5000/nutriapp:latest
imagePullPolicy: Always
ports:
- containerPort: 3100
name: http
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: nutriapp-db
key: url
- name: SESSION_KEY
valueFrom:
secretKeyRef:
name: nutriapp-db
key: session-key
resources:
requests:
memory: "32Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /api/health
port: 3100
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /api/health
port: 3100
initialDelaySeconds: 5
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: nutriapp
namespace: nutriapp
labels:
app: nutriapp
spec:
selector:
app: nutriapp
ports:
- port: 3100
targetPort: 3100
name: http
type: ClusterIP