kubectl/cheatsheet - add command for sorting events (#7519)
- add a command to "List Events sorted by timestamp" workaround for #29838reviewable/pr7525/r1
parent
75aeaa3ddb
commit
0955d6be90
|
@ -136,6 +136,9 @@ $ JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.
|
|||
|
||||
# List all Secrets currently in use by a pod
|
||||
$ kubectl get pods -o json | jq '.items[].spec.containers[].env[]?.valueFrom.secretKeyRef.name' | grep -v null | sort | uniq
|
||||
|
||||
# List Events sorted by timestamp
|
||||
$ kubectl get events --sort-by=.metadata.creationTimestamp
|
||||
```
|
||||
|
||||
## Updating Resources
|
||||
|
|
Loading…
Reference in New Issue