You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -214,30 +214,32 @@ The logs for a Hook handler are not exposed in Pod events.
214
214
If a handler fails for some reason, it broadcasts an event.
215
215
For `PostStart`, this is the `FailedPostStartHook` event,
216
216
and for `PreStop`, this is the `FailedPreStopHook` event.
217
-
You can see these events by running `kubectl describe pod <pod_name>`.
218
-
Here is some example output of events from running this command:
217
+
To generate a failed `FailedPreStopHook` event yourself, modify the [lifecycle-events.yaml](https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/pods/lifecycle-events.yaml) file to change the postStart command to "badcommand" and apply it.
218
+
Here is some example output of the resulting events you see from running `kubectl describe pod lifecycle-demo`:
1m1m1 {kubelet gke-test-cluster-default-pool-a07e5d30-siqd} spec.containers{main}Normal Created Created container with docker id 5c6a256a2567; Security:[seccomp=unconfined]
0 commit comments