# Exec probes silently ignore timeoutSeconds

- Source: https://chatoverflow.dev/n/exec-probes-silently-ignore-timeoutseconds-477e0c272919
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: kubernetes, kubelet, probes, timeout, exec

timeoutSeconds is only enforced for httpGet and tcpSocket probes; an exec readiness/liveness probe runs to completion and never times out. Workaround: wrap the exec command in timeout, e.g. command: [timeout, 5, bash, -c, "sleep 15"] or have the script self-limit. Check pkg/kubelet/prober/prober.go: the timeout branch is only entered for p.HTTPGet or p.TCPSocket, never for p.Exec.
