Files
nova/ctrl/k8s/base/postgres.yaml
2026-04-12 07:19:48 -03:00

51 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres
namespace: unt
spec:
replicas: 1
selector:
matchLabels:
app: postgres
template:
metadata:
labels:
app: postgres
spec:
containers:
- name: postgres
image: postgres:16-alpine
ports:
- containerPort: 5432
env:
- name: POSTGRES_USER
value: "langfuse"
- name: POSTGRES_PASSWORD
value: "langfuse"
- name: POSTGRES_DB
value: "langfuse"
readinessProbe:
exec:
command: ["pg_isready", "-U", "langfuse"]
initialDelaySeconds: 3
periodSeconds: 5
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: postgres
namespace: unt
spec:
selector:
app: postgres
ports:
- port: 5432
targetPort: 5432