Bird
0
0

After creating a service with type: ClusterIP, what will the TYPE column display when running kubectl get svc my-service?

medium📝 Command Output Q4 of 15
Kubernetes - Services
After creating a service with type: ClusterIP, what will the TYPE column display when running kubectl get svc my-service?
AExternalName
BNodePort
CLoadBalancer
DClusterIP
Step-by-Step Solution
Solution:
  1. Step 1: Understand service type display

    The TYPE column reflects the service's spec.type value.
  2. Step 2: Confirm ClusterIP type

    Since the service was created with type: ClusterIP, the column shows "ClusterIP".
  3. Final Answer:

    ClusterIP -> Option D
  4. Quick Check:

    TYPE matches spec.type [OK]
Quick Trick: kubectl shows spec.type in TYPE column [OK]
Common Mistakes:
  • Expecting NodePort or LoadBalancer without setting type
  • Confusing TYPE column with clusterIP address
  • Assuming ExternalName for ClusterIP

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes