Pod Link to heading
- Kubernetes ultimate aim is to deploy apps in CONTAINERS on a set of machines configured as WORKER NODES in a CLUSTER
- Kubernetes aka “k8s” does not deploy containers DIRECTLY on worker nodes
- Containers are encapsulated into a Kubernetes object known as POD
- A pod is a single instance of an application
- A pod is the SMALLEST object you can create in Kubernetes
Pod Example Link to heading
Below is a very simple example of a YAML file. The file deploys a pod named “my-pod” with the image “nginx”.
pod-definition.yaml Link to heading
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: nginx
image: nginx