feat: add ephermeral container approach inside pod debug page. (#18754)

This commit is contained in:
Jacky Wu
2020-01-30 06:28:14 +08:00
committed by GitHub
parent 48fb48d882
commit c7dc8c141a
@@ -123,6 +123,8 @@ As an example, to look at the logs from a running Cassandra pod, you might run:
kubectl exec cassandra -- cat /var/log/cassandra/system.log
```
If your cluster enabled it, you can also try adding an [ephemeral container](/docs/concepts/workloads/pods/ephemeral-containers/) into the existing pod. You can use the new temporary container to run arbitrary commands, for example, to diagnose problems inside the Pod. See the page about [ephemeral container](/docs/concepts/workloads/pods/ephemeral-containers/) for more details, including feature availability.
If none of these approaches work, you can find the host machine that the pod is
running on and SSH into that host.