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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user