Recall & Review
beginner
What is the purpose of the ExternalName service type in Kubernetes?
ExternalName service type maps a Kubernetes service to an external DNS name. It allows pods to access services outside the cluster using a simple service name.
Click to reveal answer
intermediate
How does Kubernetes resolve an ExternalName service?
Kubernetes returns a CNAME record pointing to the external DNS name specified in the ExternalName service. The client then resolves this DNS name outside the cluster.
Click to reveal answer
beginner
Which field must be specified in the ExternalName service manifest?
The 'externalName' field must be set to the DNS name you want to map to, for example 'my.database.example.com'.
Click to reveal answer
intermediate
Can ExternalName services be used with selectors or endpoints?
No, ExternalName services do not use selectors or endpoints because they do not manage pods. They only provide DNS mapping to an external name.
Click to reveal answer
beginner
Give an example YAML snippet for an ExternalName service.
apiVersion: v1
kind: Service
metadata:
name: my-external-service
spec:
type: ExternalName
externalName: example.com
Click to reveal answer
What does the ExternalName service type in Kubernetes do?
✗ Incorrect
ExternalName service type maps a Kubernetes service to an external DNS name, allowing access to services outside the cluster.
Which field is required in an ExternalName service manifest?
✗ Incorrect
The 'externalName' field specifies the external DNS name to map the service to.
Can ExternalName services use selectors to find pods?
✗ Incorrect
ExternalName services do not use selectors because they do not manage pods or endpoints.
What DNS record type does Kubernetes return for an ExternalName service?
✗ Incorrect
Kubernetes returns a CNAME record pointing to the external DNS name specified.
Which Kubernetes service type would you use to access an external database by DNS name?
✗ Incorrect
ExternalName service type is designed to map a service to an external DNS name, perfect for external databases.
Explain how an ExternalName service works in Kubernetes and when you would use it.
Think about how Kubernetes lets pods reach outside services using DNS.
You got /4 concepts.
Describe the key differences between ExternalName and other Kubernetes service types like ClusterIP or LoadBalancer.
Focus on how ExternalName handles service discovery differently.
You got /4 concepts.