Bird
0
0

You created this ExternalName service YAML:

medium📝 Troubleshoot Q14 of 15
Kubernetes - Services
You created this ExternalName service YAML:
apiVersion: v1
kind: Service
metadata:
  name: ext-svc
spec:
  type: ExternalName
  externalName: 123.45.67.89

Why does this configuration fail?
AexternalName field is missing
Btype ExternalName cannot be used with metadata
CexternalName must be a DNS name, not an IP address
DService type must be ClusterIP for IP addresses
Step-by-Step Solution
Solution:
  1. Step 1: Check externalName field requirements

    The externalName must be a valid DNS name, not an IP address.
  2. Step 2: Identify error cause

    Using an IP address like 123.45.67.89 in externalName is invalid and causes failure.
  3. Final Answer:

    externalName must be a DNS name, not an IP address -> Option C
  4. Quick Check:

    externalName = DNS name only [OK]
Quick Trick: externalName must be a DNS name, not IP [OK]
Common Mistakes:
  • Using IP instead of DNS in externalName
  • Confusing service type rules
  • Omitting externalName field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes