Possible to terminate pod from Within the pod?

I know you can terminate pod from “outside” with runpodctl- but are there any options for a pod to self-terminate, triggered by its own docker image?
Or, am I approaching this wrong and ‘best practice’ is to have your pods giving status updates back to and being managed by a script on your main PC w/ runpodctl?
Solution
One of them is
RUNPOD_POD_ID
which you can use to remove/terminate/kill the pod.
Was this page helpful?