k explain <resource>
.kube-apiserver
is available at https://kube-master:6443
/version
- to view the cluster version/metrics
- to get cluster metrics/healthz
- to monitor the cluster health/logs
- to integrate with 3rd party logging applications/api
- used to interact with the cluster (core group)/apis
- used to interact with the cluster (named group)/api
)All the core functionalities exist in this API group. All the resources (functionalities) are scattered in this group.
/apis
)The named API group is organized into subgroups (resources) based on the category. The newer features in k8s and going forward all the incoming features will be made available in this group. Several actions (verbs) can be performed on the resources.
Most of the API endpoint will require you to authenticate to the kube-apiserver
. This means passing the login credentials in the curl command. Alternatively, you can setup a proxy client to by running the command kubectl proxy
which will automatically proxy your API requests and add the credentials from the KubeConfig file on your local system. So, you no longer need to pass the authentication details in every curl command.
curl <https://kube-master:6443/version
>