Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Kubernetes: delete all namespaces with the prefix "demo-"
Javi
Nov 17th, 2021
269
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/bin/bash
names=$(kubectl get namespace -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | grep "demo-")
for each in $names
do
kubectl delete ns $each &
done
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ MAKE $2500 IN 15 MIN ✅ Working 💵 💎
JavaScript | 7 min ago | 0.22 KB
fix podcast issue on rtl
CSS | 11 min ago | 0.66 KB
✅ Crypto Swap Glitch ✅ Still works 💎 💵
JavaScript | 14 min ago | 0.22 KB
⭐⭐⭐Swapzone.io Glitch (Working)⭐⭐
Java | 22 min ago | 0.09 KB
✅ Exchange profit method 🚨 🔥
JavaScript | 22 min ago | 0.22 KB
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 22 min ago | 0.09 KB
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 23 min ago | 0.09 KB
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐
Java | 23 min ago | 0.09 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!