Bird
0
0

What IP address will a ClusterIP service have if you set clusterIP: None in the YAML?

medium📝 Command Output Q5 of 15
Kubernetes - Services
What IP address will a ClusterIP service have if you set clusterIP: None in the YAML?
AClusterIP is assigned automatically as usual
BService gets an external IP instead
CNo cluster IP is assigned; service acts as headless
DService creation fails with error
Step-by-Step Solution
Solution:
  1. Step 1: Understand clusterIP: None meaning

    Setting clusterIP: None creates a headless service without a cluster IP.
  2. Step 2: Effects of headless service

    Headless services do not get an IP and allow direct pod endpoints access.
  3. Final Answer:

    No cluster IP is assigned; service acts as headless -> Option C
  4. Quick Check:

    clusterIP None means headless service [OK]
Quick Trick: clusterIP: None creates headless service [OK]
Common Mistakes:
  • Expecting automatic IP assignment
  • Thinking service gets external IP
  • Assuming service creation fails

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes