I have the solution working on a local environment. The problem is when the application outside the EAP gear tries to connect to the Stomp port.
How can I expose the new port for STOMP on Openshift online to another application on my openshift domain?
You would not be able to expose the STOMP port for public use, though you could do a port forward from your local workstation to use it. The only ports that are available publicly on OpenShift are 80/443/8000/8443
Related
I have spring boot admin server deployed in openshift with the help of fabric8 maven plugin
And also i have several applications deployed in openshift.
Spring boot admin server (SBAS) use spring cloud kubernetes discovery to discover services (applications) registered / running in namespace / cluster, which is automatic client discovery.
SBAS discovered as expected, its fine but some applications shown / registered in SBAS use http and some use https to check the health as like below
I have no idea, why SBAS use http for some apps and for https for some apps to check the health.
Since SBAS use https and port 8443 it shows applications are offline but those applications are exposed in http 8080 only
I have compared applications code and openshift configurations but i don't see any difference and how to fix this issue.
I am new to all above concepts could some one help me ?
I didn't find solution for this issue, but i did work around which helped me.
Since i am using only one port 8080, i have deleted other ports such as 8443 and 8778 via openshif yml as shown below. but you have you have to expose more ports this won't help.
I am using Red Hat Openshift and Spring Cloud / Netflix OSS. I have developed the applications and can get this working locally on my machine. However, when I deploy to Openshift I cannot get the applications to register to the Eureka server. I can get Eureka running but when I deploy the Eureka client applications they do not register to the Eureka server.
I have updated the properties to point to the Eureka server but the applications do not register. I am running Eureka on port 8761. The properties of my application (Zuul application) is as follows:
spring.application.name=netflix-zuul-api-gateway-server
server.port=8765
eureka.instance.hostname=eureka-service.currency-conversion-service.svc
eureka.client.service-url.default- zone=http://${eureka.instance.hostname}:8761/eureka/
eureka.instance.preferIpAddress=false
I have pointed the application to the service hostname that was allocated to the Eureka server in Openshift and I have added the port to the Eureka client URL as can be seen above. I am not sure this is correct or I should be using the route. I am new to Openshift and there does not seem to be much information on the net for Spirng Boot and Spring Cloud in Openshift.
Can anybody help please.
Thanks
I am trying to set up production and development environment for my web project hosted at Openshift PAAS.
I should be able to deploy my web application after final tests and changes to Openshift (production environment).
I set my development environment using GITHUB(Since I do not want other people to connect to openshift).
How do they can connect to Openshift MYSQL server hosted at cloud without port forwarding.
It is not possible to connect to the MySQL server that is hosted on your OpenShift application without using port forwarding.
I have created a new OpenShift account for a new application I'm developing.
I have added a MongoDB cartridge for the database, and a Tomcat cartridge for the Java web application.
I now need to connect to the database from my Java web app, but I miss two authentication details:
$OPENSHIFT_MONGODB_DB_HOST
$OPENSHIFT_MONGODB_DB_PORT
As far as I know, I have to type rhc env list -a the_name_of_my_app in the console, but my application seems to have no environment variables set.
What can I do?
Apparently, the default enironment variables are visible only via ssh.
In order to see them, you have to type rhc ssh <appid-as-seen-on-openshift-console> followeb by env.
you can see environment variables by doing ssh to openshift. Also you can use openshift port forwarding feature to setup a connection locally to your database.
Openshift blog link for port forwarding
I have installed Glassfish application server Openshift cloud servers. I can only use :8080 port because of Openshift restrictions. It won't let me run admin console on :4848 port and I will somehow configure datasource, file realm and security realm manually from configuration files.
a-) Is it possible to do configuration without the admin console?
b-) Can admin console run on :8080 port along with applications?
Note: It is not possible to allocate any port for admin console Openshift won't let me do it.
Thanks
a) You can configure Glassfish with the asadmin tool
b) You can change the port for the admin console in glassfish/domains/[yourdomain]/config/domain.xml: search for
<network-listener port="4848" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>
But I doubt it is possible to use port 8080 for admin gui AND other applications.