Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): No
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): It's a bit tough to search for this since this includes a lot of keywords.
Is this a BUG REPORT or FEATURE REQUEST? (choose one): Question
Pretty much what the title says. I'm asking because sometimes I want to kill a pod for good but I don't remember what I used to create it.
@jason-riddle I think you could check the created-by annotation of pod.
@AdoHe But that's assuming it was set in the first place which I didn't do. However, your suggestion lead to the following.
With the describe call, you can just grep for Controllers
.
kubectl describe pods dd-agent-4qwo1 | grep Controllers
# Controllers: DaemonSet/dd-agent
In the case of a lone pod running, Controllers
will be empty.
kubectl describe pods apache | grep Controllers
# Controllers: <none>
Thanks!
Worked for me:
kubectl
describepod <Podname> -n <namespace> | grep "Controlled By"
Most helpful comment
@AdoHe But that's assuming it was set in the first place which I didn't do. However, your suggestion lead to the following.
With the describe call, you can just grep for
Controllers
.In the case of a lone pod running,
Controllers
will be empty.Thanks!