当前位置:网站首页>如何查看Pod里容器名称
如何查看Pod里容器名称
2022-07-26 05:32:00 【喝醉酒的小白】
方法1
ka get pod
ka get pod --help|grep jsonpath
-o, --output='': Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See custom columns [http://kubernetes.io/docs/user-guide/kubectl-overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://kubernetes.io/docs/user-guide/jsonpath].
ka get pod [drc-redis-6da13ec0-0] -o jsonpath={
.spec.containers[*].name}
方法2
ka get pod [drc-redis-6da13ec0-0] -o yaml|grep -w name
方法3
ka describe pod|more
Containers
方法4
docker ps|grep [drc-redis-6da13ec0-0]
边栏推荐
- MongoDB 常用命令
- Hack the box - Introduction to networking module detailed Chinese tutorial
- Mongondb API usage
- 攻防世界--easy_web
- 35. Search the insertion position
- Hack the box -sql injection fundamentals module detailed Chinese tutorial
- Redis official visualization tool, with high appearance value and powerful functions!
- C语言实现发牌功能基本方法
- Lightweight MCU command line interaction project, all open source
- SQL injection
猜你喜欢

攻防世界--easy_web

Attack and defense world flatscience

FPGA刷题——序列检测

Getaverse, a distant bridge to Web3

Shell read read console input, use of read

Common modules in ansible

Efficient, reliable and safe open source solution for serial communication

SSH Remote Management

No background, no education? Is it really hopeless for specialist testers to enter Internet factories?

Chinese character style transfer --- learn the conversion and generation of one to many programmed Chinese characters through generation confrontation network
随机推荐
高手是怎样炼成的?
Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output
SIP账号注册的SIP软电话的使用和常见问题
NetCore MySql The user specified as a definer (‘admin‘@‘%‘) does not exist
这种项目,最好别接!
Thread三种实现方式 和 Handler的用法
If MySQL calculates the current month change / current month increase / year-on-year change / year-on-year increase?
C language explanation series - understanding of functions (4) declaration and definition of functions, simple exercises
Recommended reading: how can testers get familiar with new businesses quickly?
FPGA刷题——序列检测
Attack and defense world -- easy_ web
Use flutter to adjust a color filter for the picture of my little sister
Polymer physics test question bank
循环结构 practice
kubernetes install completed
选电子工程被劝退,真的没前景了?
Usage and common problems of SIP softphone registered with SIP account
家居vr全景展示制作提高客户转化
DOM操作--操作节点
SQL injection