当前位置:网站首页>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]
边栏推荐
- Hack The Box -SQL Injection Fundamentals Module详细讲解中文教程
- No EGL display error resolution
- Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output
- Development projects get twice the result with half the effort, a large collection of open source STM32 driver Libraries
- no networks found in /etc/cni/net.d
- Another open source artifact, worth collecting and learning!
- Circular structure practice
- QT writing IOT management platform 47 general database settings
- Processing method of CDC in SDC
- TZC 1283: simple sort - select sort
猜你喜欢

87. Disturb string

LNMP架构

MySQL optimization

OD-Paper【1】:Rich feature hierarchies for accurate object detection and semantic segmentation

Another open source artifact, worth collecting and learning!

10. Regular expression matching

SSTI-payload和各种绕过方法

Common modules in ansible

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

Use playbook in ansible
随机推荐
芯片的翻新和造假,人被坑麻了
OD-Paper【2】:Fast R-CNN
OD-Paper【1】:Rich feature hierarchies for accurate object detection and semantic segmentation
DOM operation -- operation node
Attack and defense world flatscience
三本毕业,三年嵌入式软件的心路历程
Hack The Box -SQL Injection Fundamentals Module详细讲解中文教程
Thread三种实现方式 和 Handler的用法
学生如何申请免费IDEA
Flex layout principle and common parent elements
柠檬班自动化学习毕竟
MongonDB API使用
kubernetes install completed
代码审计之百家cms
High frequency electronic circuit review examination questions and answers
选电子工程被劝退,真的没前景了?
Data warehouse construction -dim floor
Common modules in ansible
IVR在voip电话系统的应用与价值
Three graduates, three years of experience in embedded software