This gets the most recently created pod:
most recently created pod
kubectl get pods --sort-by=.metadata.creationTimestamp -o jsonpath="{.items[-1].metadata.name}"