[英]Kubectl pod vs pods
I have noticed that when using kubectl you can pretty much use pod and pods interchangeably. 我已经注意到使用kubectl你几乎可以使用吊舱和豆荚交替时。 Is there any instance when using one instead of the other could get you different results or can you just use either without worrying about it?
是否有任何实例,当使用一个而不是另一个可以得到不同的结果或你可以只使用其中之一而不用担心它?
For example: 例如:
kubectl get pods
kubectl get pod
kubectl describe pod/app
kubectl describe pods/app
and so on... 等等...
From the kubectl documentation : 从kubectl文档 :
Resource types are case-insensitive and you can specify the singular, plural, or abbreviated forms.
资源类型不区分大小写,您可以指定单数,复数或缩写形式。 For example, the following commands produce the same output:
例如,以下命令产生相同的输出:
kubectl get pod pod1 kubectl get pods pod1 kubectl get po pod1
It doesn't matter and both ways of writing will always result in the same result. 这无关紧要,两种写作方式总会产生相同的结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.