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

CKA study material · question 701 of 1000

A Service of type NodePort is created without naming a nodePort value. Which range does the allocated port come from by default?

  1. 1024-65535
  2. 8000-9000
  3. 30000-32767
  4. 10250-10259
Show the answer

Answer: C. 30000-32767

The control plane allocates from --service-node-port-range, which defaults to 30000-32767, and records the choice in .spec.ports[*].nodePort.

Source: Service (Kubernetes) — Service type › type: NodePort

Challenge yourself on this topic → Study as cards