Files
wiki-print/podman/wiki-print.pod.yaml
2026-11-13 11:50:48 +01:00

68 lines
1.5 KiB
YAML

apiVersion: v1
kind: Pod
metadata:
name: wiki-print
labels:
app: wiki-print
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 20
containers:
- name: wiki-print
image: localhost/wiki-print:latest
imagePullPolicy: Never
ports:
- name: http
containerPort: 8080
hostPort: 8080
protocol: TCP
env:
- name: PORT
value: "8080"
- name: NODE_ENV
value: production
- name: LOG_LEVEL
value: info
- name: LOG_FORMAT
value: text
- name: MAX_PAGES
value: "500"
- name: WIKI_URL
valueFrom:
secretKeyRef:
name: wiki-print-config
key: WIKI_URL
optional: true
- name: WIKI_API_KEY
valueFrom:
secretKeyRef:
name: wiki-print-config
key: WIKI_API_KEY
optional: true
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
resources:
requests:
memory: "256Mi"
limits:
memory: "1536Mi"
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 15
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3