fix(k8s/homepage): send allowed Host header in probes for v2

This commit is contained in:
2026-09-11 15:29:00 +03:00
parent 1bb0e7628c
commit 492f59532e
+9 -2
View File
@@ -51,16 +51,23 @@ spec:
- name: config - name: config
mountPath: /app/config/kubernetes.yaml mountPath: /app/config/kubernetes.yaml
subPath: kubernetes.yaml subPath: kubernetes.yaml
# v2 validates the Host header on every route; kubelet sends the pod IP, so pin an always-allowed host
livenessProbe: livenessProbe:
httpGet: httpGet:
port: 3000 port: 3000
path: / path: /api/healthcheck
httpHeaders:
- name: Host
value: localhost:3000
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
readinessProbe: readinessProbe:
httpGet: httpGet:
port: 3000 port: 3000
path: / path: /api/healthcheck
httpHeaders:
- name: Host
value: localhost:3000
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 10 periodSeconds: 10
resources: resources: