kubectl get podes code example
Example 1: kubernetes get inside pod
kubectl exec -it <pod-name> -- sh
Example 2: kubectl get pod events
kubectl get event --namespace abc-namespace --field-selector involvedObject.name=my-pod-zl6m6
kubectl exec -it <pod-name> -- sh
kubectl get event --namespace abc-namespace --field-selector involvedObject.name=my-pod-zl6m6