Skip to content

Instantly share code, notes, and snippets.

@sharepointoscar
Last active February 16, 2025 22:08
Show Gist options
  • Select an option

  • Save sharepointoscar/0c35e6fb9151a1967bd68253b1bf802f to your computer and use it in GitHub Desktop.

Select an option

Save sharepointoscar/0c35e6fb9151a1967bd68253b1bf802f to your computer and use it in GitHub Desktop.
Minikube - Delete all pods from default namespace
# delete all pods
kubectl delete --all pods --namespace=default
# deete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
@MohanNagendraKumar

Copy link
Copy Markdown

still i am unable to delete my pods from my namespace

@any-lia

any-lia commented Nov 6, 2018

Copy link
Copy Markdown

Hi,
you have to delete the controller, because everytime you delete your pods, the controller gonna respawn it.
kubectl delete replicationcontroller controllerName
kubernetes/kubernetes#26375 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment