Cluster API versions
It is good practice to check the available cluster API versions because each new Kubernetes version usually brings with it new API versions and deprecates/removes some old ones.
To get an API list, run the following command:
$ kubectl api-versions
The output for the preceding command gives us a list of APIs, as shown in the following screenshot:
You need to know which APIs can be used in your application, as otherwise, the deployment could fail if the API version you use is not supported anymore.