1 Answer
1

kubectl get deployment foo is ambiguous, since the server has deployments in multiple api groups. When a resource exists in multiple api groups, kubectl uses the first group listed in discovery docs published by the server which contains the resource. For backwards compatibility, that is the extensions api group.

If you want to ensure you get a deployment in the apps api group, fully qualify the resource you are requesting by running kubectl get deployments.apps test-nginx

If you want a specific version, like v1, in the apps api group, include that as well: kubectl get deployments.v1.apps test-nginx

It makes it little bit more clear. So when I request info for deployment Kubernetes gets minimal supported version in the cluster for that and retrieves info using it. But for retrieving all - minimal supported version is apps/v1? Would then all output be missing resources that do not support apps/v1?
– Aleksandr ErokhinMay 23 at 11:07