Securing kube-apiserver
kube-apiserver
is the gateway to your cluster. It implements a representational state transfer (REST) application programming interface (API) to authorize and validate requests for objects. It is the central gateway that communicates and manages other components within the Kubernetes cluster. It performs three main functions:
- API management:
kube-apiserver
exposes APIs for cluster management. These APIs are used by developers and cluster administrators to modify the state of the cluster. - Request handling: Requests for object management and cluster management are validated and processed.
- Internal messaging: The API server interacts with other components in the cluster to ensure the cluster functions properly.
A request to the API server goes through the following steps before being processed:
- Authentication:
kube-apiserver
first validates the origin of the request.kube-apiserver
supports multiple modes of authentication including...