📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Kubernetes Pods

Pods

5 min read Quiz at the end
Pods are the smallest K8s unit — one or more containers sharing network and storage resources.

Kubernetes Pods

A Pod is the smallest deployable unit — one or more containers sharing network and storage.

# pod.yaml
apiVersion: v1
kind: Pod
metadata:
  name: myapp
  labels:
    app: myapp
spec:
  containers:
    - name: myapp
      image: myapp:1.0
      ports:
        - containerPort: 3000
      resources:
        requests:
          memory: "64Mi"
          cpu: "250m"
        limits:
          memory: "128Mi"
          cpu: "500m"

kubectl apply -f pod.yaml
kubectl logs mypod
kubectl exec -it mypod -- bash