Update production-pods.md
parent
8f34f2e0aa
commit
7c9629c63f
|
@ -328,7 +328,7 @@ spec:
|
|||
|
||||
The message is recorded along with the other state of the last (i.e., most recent) termination:
|
||||
|
||||
```shell
|
||||
```shell{% raw %}
|
||||
$ kubectl create -f ./pod.yaml
|
||||
pods/pod-w-message
|
||||
$ sleep 70
|
||||
|
@ -336,7 +336,7 @@ $ kubectl get pods/pod-w-message -o go-template="{{range .status.containerStatus
|
|||
Sleep expired
|
||||
$ kubectl get pods/pod-w-message -o go-template="{{range .status.containerStatuses}}{{.lastState.terminated.exitCode}}{{end}}"
|
||||
0
|
||||
```
|
||||
{% endraw %}```
|
||||
|
||||
## What's next?
|
||||
|
||||
|
|
Loading…
Reference in New Issue