简体   繁体   中英

Kubectl pod vs pods

I have noticed that when using kubectl you can pretty much use pod and pods interchangeably. 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 :

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM