Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add liveness probe error case #194

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions e.observability.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,24 @@ A typical liveness probe failure event
LAST SEEN TYPE REASON OBJECT MESSAGE
22m Warning Unhealthy pod/liveness-exec Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory
```
or

```
LAST SEEN TYPE REASON OBJECT MESSAGE
10m Warning Unhealthy pod/nginx Liveness probe errored: rpc error: code = Unknown desc = container not running (ea07b5238cb370018a911d82551c02f07df9bc435696855ffca62a143938b56a)
```

collect failed pods namespace by namespace

```sh
# Using grep for exact matches '-w' or '—word-regexp' $ grep -w 'one\|two\|three'
# reference https://www.linuxscrew.com/grep-multiple-words-strings-patterns

kubectl get ns # check namespaces
kubectl -n qa get events | grep -i "Liveness probe failed"
kubectl -n alan get events | grep -i "Liveness probe failed"
kubectl -n test get events | grep -i "Liveness probe failed"
kubectl -n production get events | grep -i "Liveness probe failed"
kubectl -n qa get events | grep -i -w "Liveness probe failed\|errored"
kubectl -n alan get events | grep -i -w "Liveness probe failed\|errored"
kubectl -n test get events | grep -i -w "Liveness probe failed\|errored"
kubectl -n production get events | grep -i -w "Liveness probe failed\|errored"
```

</p>
Expand Down