[英]List node of kubectl pod
I have been following tutorial at https://cloud.google.com/container-engine/docs/tutorials/guestbook#step_four_create_the_redis_worker_service 我一直在关注https://cloud.google.com/container-engine/docs/tutorials/guestbook#step_four_create_the_redis_worker_service上的教程
After creating a pod (redis pod), when I tried to get the node 创建pod(redis pod)后,当我尝试获取节点时
using the folloiwng command 使用folloiwng命令
$ kubectl get pods -l name=redis-master -o wide
I don't see any output. 我没有看到任何输出。 It is just blank
它只是空白
The name is a metadata, not a label in the example. 名称是元数据,而不是示例中的标签。
Try the following: 请尝试以下方法:
kubectl get pods -l app=redis,role=master -o wide
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.