Skip to content
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

Bugs report for Openshift sub-generator - No route to host (Host unreachable) #13281

Closed
jh64 opened this issue Dec 14, 2020 · 1 comment
Closed

Comments

@jh64
Copy link
Contributor

jh64 commented Dec 14, 2020

I have been trying to run the JHipster (6.10.5) generated apps (excluding the JHipster Registry) to run on Openshift CodeReady/crc (4.6.1). I managed to fix a few bugs in the yaml files generated by running the command "jhipster openshift".

Error from the gateway app:
I/O error on GET request for "http://myapp:80/management/health": No route to host (Host unreachable); nested exception is java.net.NoRouteToHostException: No route to host (Host unreachable)

I will be fixing: https://github.com/jhipster/generator-jhipster/tree/main/generators/openshift/templates/deployment.yml.ejs

I changed the yml file - fixed the port for the service spec - making them the same as the k8s one.
Note: RouteDetectorFilter.java is generated only in the case that the Jhipster Registry is excluded . And it has port 80 hard coded for searching/detecting the microservice apps' service.

@pascalgrimaud
Copy link
Member

closed by #13283

@pascalgrimaud pascalgrimaud added this to the 7.0.0-beta.0 milestone Dec 18, 2020
coderguy-tech pushed a commit to coderguy-tech/generator-jhipster that referenced this issue Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants