Kubernetes - Deleting petsets doesn't delete pods

3/15/2017

I am in an environment where we are still using petsets. When I run the following command :

kubectl delete petsets <petset-name>

The petset is deleted but the pods(pets) associated with it are not deleted. When I tried this locally on minikube using statefulsets, the statefulsets as well as pods are getting deleted. Is it the behaviour of petsets? or Is it a bug with petsets or my environment? Is there a way to debug this? Because when I checked the documentation here : petsets, it seems the pods should have been deleted!?

-- Anvita Vyas
kubernetes

1 Answer

3/15/2017

You are using an old version of kubernetes that is affected by issue 27438. Upgrade to 1.5. (See kubectl version)

-- Janos Lenart
Source: StackOverflow