Kubernetes objects
A Kubernetes object is a persistent entity and represents a record of intent. An object can be defined using the YAML configuration. It will have two main fields – spec and status. The object spec represents the specification, and the object state represents the desired state. Once the object is created, the Kubernetes system will ensure that the object exists as per the specified declarative configuration.
Kubernetes supports multiple object types. Each object type is meant for a specific purpose. The following are some critical Kubernetes objects that will be used throughout this chapter. This is not an exhaustive list:
- Pods – The smallest atomic unit in Kubernetes
- Deployment – Provides declarative updates for Pods and ReplicaSets
- StatefulSet – Manages stateful applications and guarantees ordering
- DaemonSet – Runs a copy of the Pod on each node
- Job – Creates one or more Pods and will continue...