Study. uk . com
  1. Home
  2. All questions
  3. Question 853

CKA study material · question 853 of 1000

A Deployment using hostPort is scaled to 8 replicas on a 5-node cluster, and three Pods stay Pending. Why?

  1. hostPort allows only one Pod per node, so replicas cannot exceed the node count
  2. hostPort requires a matching NodePort Service to be created first
  3. hostPort Pods must tolerate the node's taints
  4. hostPort is limited to the 30000-32767 range
Show the answer

Answer: A. hostPort allows only one Pod per node, so replicas cannot exceed the node count

Binding a Pod to a hostPort limits placement to one such Pod per node, so a Deployment using it cannot have more replicas than the cluster has eligible nodes.

Source: Debug Pods (Kubernetes) — Debugging Pods › My pod stays pending

Challenge yourself on this topic → Study as cards