Alternatively, you could use jq tool. With the following command:
kubectl get events -n namespace-name -ojson | jq '.items[] | select ((.involvedObject.name=="pod-name") and (.involvedObject.kind=="Pod"))'
Note that I used an additional condition in the select clause .involvedObject.kind=="Pod"
, to filter out all non-Pod objects with the same name and namespace as Pod we wanted.
Be aware of that while using the solution included in the-best-answer. You can just add the additional filter-selector to the command as well.
kubectl get event --namespace abc-namespace --field-selector involvedObject.name=my-pod-zl6m6,involvedObject.kind=Pod