3 ms·
One useful debugging trick I use often is to edit a deployment or pod via `kubectl edit` and update the command to be `tail -f /dev/null` e.g., spec:
by theden 5y ago
One useful debugging trick I use often is to edit a deployment or pod via `kubectl edit` and update the command to be `tail -f /dev/null`
e.g.,
spec:
containers:
- command:
- bash
- -c
- tail -f /dev/null
(and comment out any liveness or readiness probes)
Very useful to then `exec` with a shell in the pod debug things or test out different configs quickly, check the environment etc.
- mdavid626 5y agoNice trick, I usually use sleep 10000000 as the command.
- deleted 5y ago[deleted]