fix: set Host header on paperclip health probes to bypass hostname guard (#107)

The privateHostnameGuard middleware blocks requests where the Host header
is not in the allowlist. Kubelet httpGet probes use the pod IP as the
Host header, which is never in the allowlist. Setting Host: localhost
ensures probes are always permitted.

Reviewed-on: #107
This commit was merged in pull request #107.
This commit is contained in:
2026-05-02 23:01:59 +10:00
parent 0883f327e9
commit 156b545249
+6
View File
@@ -65,6 +65,9 @@ spec:
httpGet:
path: /api/health
port: 3100
httpHeaders:
- name: Host
value: localhost
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 30
@@ -74,6 +77,9 @@ spec:
httpGet:
path: /api/health
port: 3100
httpHeaders:
- name: Host
value: localhost
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10