Description of problem: - Display Service DNS when possible in the Web Console. - Currently we only display for example 172.30.X.X for the service. - We should be automatically showing whenever possible the DNS for the service. - The same can be same about: oc get service in the CLI. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Are you asking to show the Routes associated with the service, or something else? See some in progress work on the service details page https://github.com/openshift/origin-web-console/pull/839
A service has an IP address. It also has DNS associated with it. See in the documentation Table 1. https://docs.openshift.org/latest/architecture/additional_concepts/networking.html In the User Interface today we are only displaying the Service IP address. For example 172.30.x.x. We should be showing in addition to that the actual DNS that can be used to access the service. Example: Table 1. DNS Example Names Object Type Example Default <pod_namespace>.cluster.local Services <service>.<pod_namespace>.svc.cluster.local Endpoints <name>.<namespace>.endpoints.cluster.local
Hm, so this seems similar to the Hostname that we are showing with routes in this PR https://github.com/openshift/origin-web-console/pull/839 (https://cloud.githubusercontent.com/assets/3902875/20356589/f529349e-abf2-11e6-8b89-5b552809359c.png) The only difference is that we are only showing the "Endpoint" DNS type instead of all three kinds. jforrest would it be worth adding a new tab with a table that displays the other two remaining DNS types?
Ah ok, this request is for the DNS where the service is available from within the cluster, not the external DNS like with Routes.
Correct. This is for service DNS. The service that gets created when an application is exposed within the cluster. This is the service that is created from the port that the application/container exposes. Route => Service => Container The service in that flow right now only shows in the GUI and the CLI output for "oc get service" as the private internal IP address. That same service can also be referenced via DNS (internal DNS). Remembering that DNS is quite hard. We should be showing that in both places, GUI and CLI output. Appreciate the help. Almost every customer I talk to by the way asks for this.
Related PR: https://github.com/openshift/origin-web-console/pull/839 Related screenshot: https://github.com/openshift/origin-web-console/pull/839#issuecomment-265240687 The service page now displays the "Hostname" field
OCP bugs need to go to MODIFIED
This has been merged into ocp and is in OCP v3.5.0.10 or newer.
Checked on OCP v3.5.0.14 Create service in project, check on the service page, there is "Hostname" field showing the service dns now: Hostname: service-unsecure-4.prozyp.svc The bug has been fixed, so move it to Verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0884