infra/k8s/spoolman/deployment.yaml
2024-10-06 19:07:28 -07:00

46 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: spoolman
spec:
selector:
matchLabels:
app: spoolman
template:
metadata:
labels:
app: spoolman
spec:
containers:
- name: spoolman
image: ghcr.io/donkie/spoolman
resources:
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: SPOOLMAN_PORT
value: "8080"
- name: SPOOLMAN_DB_TYPE
value: postgres
- name: SPOOLMAN_DB_HOST
value: spoolman-database
- name: SPOOLMAN_DB_PORT
value: "5432"
- name: SPOOLMAN_DB_NAME
value: spoolman
- name: SPOOLMAN_DB_USERNAME
valueFrom:
secretKeyRef:
name: spoolman.spoolman-database.credentials.postgresql.acid.zalan.do
key: username
- name: SPOOLMAN_DB_PASSWORD
valueFrom:
secretKeyRef:
name: spoolman.spoolman-database.credentials.postgresql.acid.zalan.do
key: password
- name: SPOOLMAN_METRICS_ENABLED
value: "TRUE"
ports:
- containerPort: 8080
name: http