Debug Kubernetes
Run a test Docker container¶
To override the entrypoint, use:
The above assumes you are using cygwin / git bash on Windows.
Run a test K8s pod¶
Useful options:
--restart=Never
-
if the pod has a console:
-i --tty --command -- bash
-
Attach to the (first) container in the Pod:
If there are multiple containers in the pod, use: -c <container name>
- Get a shell to a running Container:
- Delete test pod: