We understand Pods first to understand:

Once that is crystal clear, The next step: Deployment becomes very easy.


Pod Skeleton structure

apiVersion: v1
kind: Pod
metadata:
  name: example-pod
  labels:
    app: example
spec:
  containers:
    - name: app-container
      image: nginx
      ports:
        - containerPort: 80

Important Sections

metadata

Used for:

spec

Defines actual runtime configuration.

Things That Belong in Pod Spec

Inside containers: