From 08f0c9c6159763f99dd334e11fd0751c98928a55 Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 7 Oct 2024 14:09:52 -0700 Subject: [PATCH] spoolman: misc fixes --- k8s/spoolman/deployment.yaml | 5 +++++ k8s/spoolman/ingress.yaml | 20 +++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/k8s/spoolman/deployment.yaml b/k8s/spoolman/deployment.yaml index ec7e554..d9f5669 100644 --- a/k8s/spoolman/deployment.yaml +++ b/k8s/spoolman/deployment.yaml @@ -10,6 +10,9 @@ spec: metadata: labels: app: spoolman + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "8080" spec: containers: - name: spoolman @@ -21,6 +24,8 @@ spec: env: - name: SPOOLMAN_PORT value: "8080" + - name: EXTERNAL_DB_SYNC_INTERVAL + value: "604800" # sync weekly - name: SPOOLMAN_DB_TYPE value: postgres - name: SPOOLMAN_DB_HOST diff --git a/k8s/spoolman/ingress.yaml b/k8s/spoolman/ingress.yaml index 7b9313a..e85b95b 100644 --- a/k8s/spoolman/ingress.yaml +++ b/k8s/spoolman/ingress.yaml @@ -29,4 +29,22 @@ spec: name: spoolman port: 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