Explain how to see Evicted pods

This commit is contained in:
Bryan Boreham committed 2017-05-08 13:14:59 +00:00
1 parent 109e249aa6
commit 909b751d6d
1 file changed
+10 -2
+10 -2
View File
@@ -135,10 +135,18 @@ However a similar request for disk space can not
be made, and so please be aware of this issue and monitor your be made, and so please be aware of this issue and monitor your
resources to ensure that they stay below 100%. resources to ensure that they stay below 100%.
Kubernetes displays a notification in the event of an eviction similar to this: You can see when pods have been evicted via the `kubectl get events` command
``` ```
pod weave-net-4ozht_kube-system(546acee0-ee25-11e6-8965-068f417b4097) evicted successfully LASTSEEN COUNT NAME KIND TYPE REASON SOURCE MESSAGE
1m 1 mypod-09vkd Pod Warning Evicted kubelet, node-1 The node was low on resource: memory.
```
or `kubectl get pods`
```
NAME READY STATUS RESTARTS AGE IP NODE
mypod-09vkd 0/1 Evicted 0 1h <none> node-1
``` ```
If you see this in your cluster, consider some of the above steps to If you see this in your cluster, consider some of the above steps to