> For the complete documentation index, see [llms.txt](https://notes.tatusl.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.tatusl.dev/kubernetes/debugging.md).

# Debugging

## Run ad-hoc container in cluster

In general:

```
kubectl run -it $IMAGE_NAME --image=$IMAGE --rm --restart=Never -- $COMMAND
```

For example:

```
kubectl run -i --tty curl --image=tutum/curl --restart=Never --rm -- sh
```
