spoolman: misc fixes

This commit is contained in:
Finn 2024-10-07 14:09:52 -07:00
parent 841fa5e55a
commit 08f0c9c615
2 changed files with 24 additions and 1 deletions

View file

@ -10,6 +10,9 @@ spec:
metadata: metadata:
labels: labels:
app: spoolman app: spoolman
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
spec: spec:
containers: containers:
- name: spoolman - name: spoolman
@ -21,6 +24,8 @@ spec:
env: env:
- name: SPOOLMAN_PORT - name: SPOOLMAN_PORT
value: "8080" value: "8080"
- name: EXTERNAL_DB_SYNC_INTERVAL
value: "604800" # sync weekly
- name: SPOOLMAN_DB_TYPE - name: SPOOLMAN_DB_TYPE
value: postgres value: postgres
- name: SPOOLMAN_DB_HOST - name: SPOOLMAN_DB_HOST

View file

@ -29,4 +29,22 @@ spec:
name: spoolman name: spoolman
port: port:
number: 8080 number: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spoolman-internal
labels:
name: spoolman-internal
spec:
rules:
- host: spoolman.spoolman.k8s
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: spoolman
port:
number: 8080