2024-10-07 02:07:28 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: spoolman
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: spoolman
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: spoolman
|
2024-10-07 21:09:52 +00:00
|
|
|
annotations:
|
|
|
|
prometheus.io/scrape: "true"
|
|
|
|
prometheus.io/port: "8080"
|
2024-10-07 02:07:28 +00:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: spoolman
|
|
|
|
image: ghcr.io/donkie/spoolman
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "500m"
|
|
|
|
env:
|
|
|
|
- name: SPOOLMAN_PORT
|
|
|
|
value: "8080"
|
2024-10-07 21:09:52 +00:00
|
|
|
- name: EXTERNAL_DB_SYNC_INTERVAL
|
|
|
|
value: "604800" # sync weekly
|
2024-10-07 02:07:28 +00:00
|
|
|
- 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
|