当前位置:网站首页>How to view the container name in pod
How to view the container name in pod
2022-07-26 05:37:00 【Drunken Xiaobai】
Method 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}
Method 2
ka get pod [drc-redis-6da13ec0-0] -o yaml|grep -w name
Method 3
ka describe pod|more
Containers
Method 4
docker ps|grep [drc-redis-6da13ec0-0]
边栏推荐
猜你喜欢

520 for what? DIY is a high-value RGB clock that girls want to watch

How to understand "array name is essentially an address" from the perspective of memory parsing?

选电子工程被劝退,真的没前景了?

芯片的翻新和造假,人被坑麻了

【STM32系列汇总】博主的STM32实战快速进阶之路(持续更新)

Thread三种实现方式 和 Handler的用法

Debugging sharp weapon! A lightweight log library log.c

The refurbishment and counterfeiting of chips have made people feel numb

NetCore MySql The user specified as a definer (‘admin‘@‘%‘) does not exist

Do you really understand fiddler, a necessary tool for testing?
随机推荐
520 for what? DIY is a high-value RGB clock that girls want to watch
嵌入式通用学习路线整理
Chapter 2 - getting started
Motor control column summary
Debugging sharp weapon! A lightweight log library log.c
Efficient, reliable and safe open source solution for serial communication
SSTI-payload和各种绕过方法
Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output
How to conduct test case review
Mongodb tutorial Chapter 08 comparison operators
SSTI payload and various bypass methods
Why can't lpddr completely replace DDR?
CANoe-XML在Test Modules中的应用
IVR在voip电话系统的应用与价值
Development projects get twice the result with half the effort, a large collection of open source STM32 driver Libraries
MBA-day29 算术-绝对值初步认识
517. 超级洗衣机
DOM操作--操作节点
A trick to teach you to easily understand Potter's map
Hack the box - Web requests module detailed Chinese tutorial