In the previous post we looked at Kubernetes architecture, in this very short post lets look at Kubernetes object.
Types of Kubernetes Objects
Each entity that can be persisted in Kubernetes is known as a Kubernetes Object. For example pod, container, Service, ServiceAccount , Volume, PersistentVolume, ContainerPort, Namespace, ConfigMap are all objects that can be maintained and persisted. You specify the object using a yaml file and Kubernetes will try to bring its state to that defined in that yaml file.
To create or modify the object you can use the Kubernetes RESTful API or the kubectl client which internally uses the API. Each object has two child objects called spec and status. The spec object is what you specify via the YAML and it is the desired end state of the object and status describes the actual state. The Kubernetes control plane is responsible for bringing the actual state to the desired state.The desired state is sent as a body of the request to the restful API. In most cases you would be writing a YAML file and use kubectl to take that YAML file and send it to the API in the control plane.
In the next post I will briefly talk about Pods.