Kubernetes manifest vocabulary

  • replicas: N — desired number of Pods; Kubernetes self-heals to maintain this count
  • selector.matchLabels — links a Deployment/Service to the Pods it manages or routes to
  • ClusterIP = internal only; LoadBalancer = public cloud load balancer
  • resources.requests = scheduling reservation; resources.limits = hard cap (OOMKill if exceeded)
  • ConfigMap volume mount — each key becomes a file at mountPath inside the container

Question 0 of 5

In this Kubernetes Deployment manifest, what does replicas: 3 mean?

apiVersion: apps/v1 kind: Deployment metadata: name: api-server spec: replicas: 3 selector: matchLabels: app: api-server template: spec: containers: - name: api image: myapp:v1.2.0