Kubernetes Components
1. Node
It’s a simple server, a physical or virtual machine.
2. Pod
It’s the smallest unit of K8S.
It’s an abstraction over a container.
It creates a running environment or a layer on top of the container. You don’t
have to interact with docker, can only interact with k8s layer.
Pod is usually meant to run one application container inside of it, one app per
pod.
Each pod has its own ip address, can communicate with each other using ip
address, which is an internal ip address.
,3. Service
3.1. Static ip address
Each pod has its own internal ip address.
If a pod dies, or restarts, it will get assigned a new ip address.
Service:
A static or permanent ip address that can be attached to each pod, to access that
pod, so even if the pod dies, the service and its ip address will stay, so you don’t
have to change that endpoint.
,
1. Node
It’s a simple server, a physical or virtual machine.
2. Pod
It’s the smallest unit of K8S.
It’s an abstraction over a container.
It creates a running environment or a layer on top of the container. You don’t
have to interact with docker, can only interact with k8s layer.
Pod is usually meant to run one application container inside of it, one app per
pod.
Each pod has its own ip address, can communicate with each other using ip
address, which is an internal ip address.
,3. Service
3.1. Static ip address
Each pod has its own internal ip address.
If a pod dies, or restarts, it will get assigned a new ip address.
Service:
A static or permanent ip address that can be attached to each pod, to access that
pod, so even if the pod dies, the service and its ip address will stay, so you don’t
have to change that endpoint.
,