Skip to content

Instantly share code, notes, and snippets.

View aminmiri's full-sized avatar
🚀
Working on something new

Amin Miri aminmiri

🚀
Working on something new
View GitHub Profile
@jossef
jossef / force-delete-k8s-namespace.py
Created August 13, 2020 12:50
force delete k8s namespace
#!/usr/bin/env python3
import atexit
import json
import requests
import subprocess
import sys
namespace = sys.argv[1]
proxy_process = subprocess.Popen(['kubectl', 'proxy'])
atexit.register(proxy_process.kill)