Hi All, can anyone explain what's the difference btw kubectl api-versions, kubec . . .

Dhruv Vohra:
Hi All, can anyone explain what’s the difference btw kubectl api-versions, kubectl api-resources?

2different sites states 2 different ans for the same question and i also while checking can found one difference is api-resources give a bit elaborated result but eventually both prints api resources only.

referred this as well: https://www.linkedin.com/pulse/kubernetes-api-versions-resources-nathan-nellans/


Alistair Mackay:
api-versions gives you the distinct results from the column APIVERSION in the output of api-resources

So api-versions is just the summary list of what versions of each API are supported by the cluster.