Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (12.7k points)
hello, I have created a ExternalName service. I am able to create the service but not able to curl it, I get 500 error. I wanna understand how this ExternalName Kubernetes service work thankyou in advance

1 Answer

0 votes
by (29.5k points)
edited by

Hi, ExternalName Services work as normal services, but while accessing it, it returns CNAME with value that mentioned in externalName, instead of returning cluster-ip of this service

For eg: 

kind: Service

apiVersion: v1

metadata:

  name: my-service

spec:

  type: ExternalName

  externalName: prakhar.example.com

if you curl this then it will redirect you at :http  ://prakhar.example.com

hope this helps, also you can learn more in detail about kubernetes and other devops tools in devops training

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...