agentic-os/curio/k8s/app.yaml

54 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: curio-app
namespace: curio
spec:
replicas: 2
selector:
matchLabels:
app: curio-app
template:
metadata:
labels:
app: curio-app
annotations:
redeploy-timestamp: "2026-05-23T23:06:00"
spec:
containers:
- name: curio
image: 192.168.8.250:5000/curio:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: curio-db-creds
key: DATABASE_URL
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 2
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: curio-app
namespace: curio
spec:
selector:
app: curio-app
ports:
- port: 80
targetPort: 3000