New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The service with IP as ExternalName did not work #2164
Comments
It is unclear what you expect. In your example, you say that "kubernetes can resolve these two service...", but in the graphic that follows it, both results are "Not Found" ... It's odd that an IP is allowed in the "externalName" field. The k8s documentation I found seems to infer that a IP in the field would not make sense:
... AFIAK, a If you want a service that resolves to a statically defined ip address, you could ...
e.g.
|
Thanks for your response!
|
/label: kubernetes
|
@chrisohaver |
ExternalName creates a locally named alias to a service name outside of the cluster. example.default.svc.cluster.local => some.service.example.com |
Yes. All people say in this accent...While, many people failed using this way to fetch other domain's service. For example, I must use github.com account auth service to login my web. |
Perhaps folks in the kubernetes-novice slack channel can explain better than me. |
My Env
kubernetes v1.11.3 (HA cluster) +
k8s.gcr.io/coredns:1.1.3
+ awsWhat I did
kubectl exec
) one pod to access these servicesWhat I'm supposed to see (also works with kube-dns in kubeadm v1.6)
Kubernetes can resolve this two service as well
What's more
Actually, I want to create the service below:
As you see, they are aws EC2 private DNS name and private IP of one machine, the same result as the experiment.
My question
Is there any feature or design that coreDns can't resolve service which forwards to an ip address?
Similar question : https://discuss.kubernetes.io/t/service-externalname-ip/494/5
The text was updated successfully, but these errors were encountered: