Update production-pods.md
This commit is contained in:
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:
|
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
|
$ kubectl create -f ./pod.yaml
|
||||||
pods/pod-w-message
|
pods/pod-w-message
|
||||||
$ sleep 70
|
$ sleep 70
|
||||||
|
@ -336,7 +336,7 @@ $ kubectl get pods/pod-w-message -o go-template="{{range .status.containerStatus
|
||||||
Sleep expired
|
Sleep expired
|
||||||
$ kubectl get pods/pod-w-message -o go-template="{{range .status.containerStatuses}}{{.lastState.terminated.exitCode}}{{end}}"
|
$ kubectl get pods/pod-w-message -o go-template="{{range .status.containerStatuses}}{{.lastState.terminated.exitCode}}{{end}}"
|
||||||
0
|
0
|
||||||
```
|
{% endraw %}```
|
||||||
|
|
||||||
## What's next?
|
## What's next?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue