fix(vpn): exec (localhost) liveness probe — VPN routing breaks kubelet HTTP probe
Once the tunnel redirects the pod default route via tun0, the pod's response to the kubelet's httpGet liveness probe egresses the tunnel and never returns → probe times out → pod restarts ~every 2min despite the tunnel being up (PIA egress IP confirmed). Switch to a local wget exec probe (stays on lo). Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
7e41cc0282
commit
4a781ace49
1 file changed
+7
-2
@@ -72,9 +72,14 @@ spec:
|
||||
- name: control
|
||||
containerPort: 8000 # Gluetun control API (health + tunnel-state lookup)
|
||||
livenessProbe:
|
||||
httpGet: { path: /v1/openvpn/status, port: 8000 } # Gluetun control API health
|
||||
initialDelaySeconds: 20
|
||||
# EXEC (localhost) not httpGet: once the tunnel redirects the default route via tun0, the pod's
|
||||
# response to a kubelet HTTP probe would egress the tunnel and never return → probe times out →
|
||||
# needless restarts. A local wget stays on lo, unaffected by the VPN routing.
|
||||
exec:
|
||||
command: ["/bin/sh", "-c", "wget -qO- http://127.0.0.1:8000/v1/vpn/status | grep -q running"]
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
|
||||
Reference in new issue
Block a user