Detailed Theory of KUBERNETES:
Kubernetes Objects:
- Kubernetes uses objects to represent the state of your cluster
- what containerized applications are running ( and on which node)
- The policies around how those applications behave, such as restart policies, upgrades and fault tolerance
- once you create the object, the kubernetes sytem will constantly work to ensure that object exist and maintain’s clusters desired state.
- every kubernetes object includes two nested fields that govern the object config the object spec and the object status
- The spec, which we provide, describes your desired state for the object-the characteristics that you want the object to have
- the status describes the actual state of the object and is supplied and updated by the kubernetes system
- all objects are identified by a unique name and a UID
- The basic kubernetes objects include
- Pod
- service
- volume
- namespace
- replicasets
- secrets
- configmaps
- deployments
- jobs
- daemonsets
Relationship between these objects:
- pod manages containers
- replicaset manage pods
- services expose pod processes to the outside world