56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: api
|
|
namespace: nvi
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: api
|
|
spec:
|
|
# lng.local.ar resolves to ::1 via the host's dnsmasq → coredns chain,
|
|
# which is the pod's own loopback (wrong). Override to the kind bridge
|
|
# gateway so traffic from this pod reaches the host's system Caddy and
|
|
# gets reverse-proxied to Langfuse on :3000.
|
|
hostAliases:
|
|
- ip: "172.19.0.1"
|
|
hostnames:
|
|
- "lng.local.ar"
|
|
containers:
|
|
- name: api
|
|
image: nvi-api
|
|
ports:
|
|
- containerPort: 8000
|
|
envFrom:
|
|
- configMapRef:
|
|
name: nvi-config
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
memory: 256Mi
|
|
cpu: 200m
|
|
limits:
|
|
memory: 1Gi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: api
|
|
namespace: nvi
|
|
spec:
|
|
selector:
|
|
app: api
|
|
ports:
|
|
- port: 8000
|
|
targetPort: 8000
|