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