Intermediate Reading #kubernetes #k8s #yaml #devops

Reading Kubernetes Manifests

5 exercises on reading Kubernetes Deployment YAML: API versioning, resource requests and limits, liveness probes, rolling update strategies, and Secrets vs ConfigMaps.

Kubernetes manifest structure
  • apiVersion + kind — which API handles it and what type of resource
  • metadata — name, namespace, labels (used by selectors)
  • spec — desired state: replicas, containers, volumes, strategy
  • resources.requests — minimum guaranteed (used for scheduling)
  • resources.limits — maximum allowed (CPU: throttle; memory: OOMKill)
  • livenessProbe → restart if unhealthy; readinessProbe → stop traffic if not ready
0 / 5 completed
1 / 5

Read this Kubernetes Deployment manifest excerpt and answer the question:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: api-server
  namespace: production
spec:
  replicas: 3
  selector:
    matchLabels:
      app: api-server
What do apiVersion: apps/v1 and kind: Deployment tell Kubernetes?