当前位置:网站首页>Shell first command result is transferred to the second command delete
Shell first command result is transferred to the second command delete
2022-06-30 11:45:00 【Zhuge iron and steel cloud】
#!/bin/bash
bianliang=`kubectl get pods -n XXXXX|grep XXXXX | grep Evicted | awk -F ' ' '{print $1}'`
#echo $bianliang
for i in $bianliang:
do
# echo $i
kubectl delete pod $i -n XXXXX
if [ $? -eq 0 ];then
echo 'succeed'
fi
done
边栏推荐
- Stm32f407zgt6 uses SDIO mode to drive SD card
- There are so many kinds of coupons. First distinguish them clearly and then collect the wool!
- Line generation (Gauss elimination method, linear basis)
- Oracle NetSuite 助力 TCM Bio,洞悉数据变化,让业务发展更灵活
- 建立自己的网站(13)
- dplyr 中的filter报错:Can‘t transform a data frame with duplicate names
- He was the first hero of Shanghai's two major industries, but died silently in regret
- H3C switch emptying configuration
- The latest collection of arouter problems
- 8 lines of code to achieve quick sorting, easy to understand illustrations!
猜你喜欢

Uncover the whole link communication process of customer service im

Is the golden cycle of domestic databases coming?

限时预约|6 月 Apache Pulsar 中文开发者与用户组会议

60 个神级 VS Code 插件!!

He was the first hero of Shanghai's two major industries, but died silently in regret

关于IP定位查询接口的测评Ⅲ

相对位置编码Transformer的一个理论缺陷与对策

Mathematics (fast power)

“新数科技”完成数千万元A+轮融资,造一体化智能数据库云管理平台

Qualcomm released the "magic mirror" of the Internet of things case set, and digital agriculture has become a reality
随机推荐
Customize an annotation to get a link to the database
Database cascading operation
关于IP定位查询接口的测评Ⅲ
R语言查看版本 R包查看版本
考研这些“不靠谱”的经验有多害人?
一个悄然崛起的国产软件,低调又强大!
来聊聊怎么做硬件兼容性检测,快速迁移到openEuler?
Go语言学习之Switch语句的使用
缓存雪崩和缓存穿透解决方案
Handler source code analysis
【模式识别大作业】
Esp32-c3 introductory tutorial basic part ⑪ - reading and writing non-volatile storage (NVS) parameters
Kongsong (ICT Institute) - cloud security capacity building and trend in the digital age
数学(快速幂)
对象映射 - Mapping.Mapster
达梦数据冲刺科创板,或成A股市场“国产数据库第一股”
It's time for the kotlin coroutine to schedule thread switching to solve the mystery
暑假学习记录
60 个神级 VS Code 插件!!
Use of switch statement in go language learning