Kubernetes 101 : REST APIs, Users, Clusters, Contexts and Authorizations.

The API server is a RESTful web program that handles RESTful API requests that come through the HTTP protocol.

It also updates the API objects and help back up their state in the Etcd server database.


The below "kubectl" command is internally changed into an HTTP GET requests:

Is the same at the below API HTTP GET request to the API-Server:

Users and clusters:

Users and clusters "live" in contexts
We can switch between users and clusters by changing the kubernetes context, using the below command:

We could check the "curent" context and the users in it, using the below command:

If we have a more restrictive context, we could switch to it and check our privileges.


We can check if we have the proper authorization for example, to list or delete pods:




Leave as a comment: