0
0
Kubernetesdevops~5 mins

ExternalName service type in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AManages endpoints for internal services
BCreates a load balancer inside the cluster
CExposes pods directly via IP addresses
DMaps a service to an external DNS name
Which field is required in an ExternalName service manifest?
AclusterIP
BexternalName
Cselector
Dports
Can ExternalName services use selectors to find pods?
ANo, ExternalName services do not use selectors
BYes, selectors are mandatory
COnly if the service type is ClusterIP
DOnly if endpoints are manually created
What DNS record type does Kubernetes return for an ExternalName service?
ATXT record
BA record
CCNAME record
DMX record
Which Kubernetes service type would you use to access an external database by DNS name?
AExternalName
BNodePort
CClusterIP
DLoadBalancer
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.