Skip to content

Commit

Permalink
docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Sep 19, 2023
1 parent 51084da commit 8771ec2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/kubernetes/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1549,12 +1549,18 @@ https://stackoverflow.com/questions/63552085/persistent-volume-claim-not-claimin


Get events sort by time
********************************
************************

.. code-block:: bash
kubectl get events --sort-by=.metadata.creationTimestamp -A
Get events only for a pod
*************************

.. code-block:: bash
kubectl get event -n namespace_name --field-selector involvedObject.name=my-pod-name --sort-by=.metadata.creationTimestamp
Service account
***************
Expand Down

0 comments on commit 8771ec2

Please sign in to comment.