The kube-apiserver component
Kubernetes' most important component is a REST API called kube-apiserver
, Essentially, this is an API that exposes all Kubernetes features. You interact with Kubernetes by calling this REST API through the kubectl command-line tool.
The role of kube-apiserver
This is a component that is part of the control plane, meaning it's something to install and run on a master node. The kube-apiserver
component is so important in Kubernetes that, sometimes, people believe it is Kubernetes itself. However, it's not. kube-apiserver
is simply one component of the orchestrator. It's the most important, yes, but it's just one of them.
It's implemented in Go. Its code is open source, under the Apache 2.0 license, and you can find it hosted on GitHub.
When working with Kubernetes, the workflow is simple. When you want to give an instruction to Kubernetes, you will always have to send an HTTP request to kube-apiserver
. When you want...