All Questions
Tagged with openshift spring-boot
211
questions
22
votes
5
answers
28k
views
How to solve liquibase waiting for changelog lock problem in several pods in OpenShift cluster?
We are supporting several microservices written in Java using Spring Boot and deployed in OpenShift. Some microservices communicate with databases. We often run a single microservice in multiple pods ...
16
votes
6
answers
14k
views
Spring boot cold start
I have a spring boot application which I'm running inside docker containers in an openshift cluster. In steady state, there are N instances of the application (say N=5) and requests are load balanced ...
14
votes
1
answer
1k
views
Openshift service is not available after short inactivity
We have our project hosted in OpenShift (OKD to be precise. We host it ourselves). The setup is as follows:
Routing server (Spring Boot 1.5.8 with Zuul): This one takes all the incoming traffic and ...
8
votes
2
answers
24k
views
CORS : Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request [duplicate]
I am trying to integrate the angualar js app with the backend spring boot , in which i am facing the redirection is not allowed for a preflight request
This is deployed on openshift , i have ...
7
votes
10
answers
48k
views
How to get the logs of a POD in openshift to local file
I have my spring boot application running on Openshift as container built using docker Image. I have enabled the logging in my application and prints all the logs.
Now i want to examine the log files ...
6
votes
3
answers
2k
views
Cant deploy simple Spring Boot web app to OpenShift
I have a .war file which when I copy to webapps folder in my local instance of Tomcat 9 then it deploys successfully. Somehow when I try to run it on Openshift gear(Tomcat 7) it doesnt get deployed. ...
5
votes
0
answers
2k
views
Spring Boot 2.3.4 + OpenJ9: Unhandled exception
During last days we are suffering a lot of JVM crashes. We have been using OpenJ9 (8 & 11) without any problems, but some days ago we have started to have a lot of crashes. Two examples from today:...
5
votes
1
answer
599
views
Spring batch JDBCPagingItemReader, ThreadPoolTaskExecutor and multiple pods in OpenShift
We have a Spring batch application with chunk processing which reads records from DB, processes them and calls a service/performs a few inserts/updates a few tables in the DB as part of writer.
...
4
votes
3
answers
3k
views
Externalize configuration node js
I am gonna deploy a node js service in openshift and there are few properties such as database configs and app properties which I need to externalize.
I have java applications running as part of ...
4
votes
2
answers
5k
views
SpringBoot disable Actuator root
I'm using Spring Boot and exposing metrics with actuator and prometheus. I want to expose info, health, metrics, prometheus, shutdown, and nothing more. But even if I specify into the application ...
4
votes
1
answer
3k
views
How to deploy multi-module maven spring boot application on OpenShift
I have a multi-module spring-boot project that I want to deploy on Openshift, where I have installed Jenkins as well. Source code is hosted in Github.
Each module consists in a war, in order to have a ...
4
votes
1
answer
3k
views
Updating auto renewed DB password in JDBC connection - Spring Boot
I have a strange use case running spring boot microservices, the services lives inside an openshift cluster and the problem I face is due to a database password renewal policy.
The app uses JDBC ...
3
votes
1
answer
3k
views
Spring boot app with Apache Camel shuts down right after it has started
My application is written in Java using Spring Boot and Apache Camel. When run in my Windows development environment it starts and runs nicely. But when run inside my Open Shift test environment, the ...
3
votes
4
answers
2k
views
WAR containing spring boot application manually deployed on openshift tomcat does not work
I created a Spring Boot application, then I created a war.
On my local server the app works correctly.
I added this app to a JBOSSEWS cartridge by renaming it ROOT.war, putting it in the webapps ...
3
votes
3
answers
2k
views
api gateway for spring boot microservices in open shift
We have a microservices based application running in openshift for which we need to design an API gateway.
This API gateway is expected to perform minimal checks like authentication , routing to ...
3
votes
1
answer
4k
views
Enable WebSocket Connections with multiple Pods in Spring Boot Application
I'm using a web-socket protocol in my spring boot application. There are multiple pods used, to handle heavy traffic. Now, having multiple pods is causing an issue. Let me brief it a bit,
Let's assume ...
3
votes
1
answer
444
views
Duplicate Cache-Control header in Spring Boot application
We have a Spring Boot application that runs in Openshift where we configure the Cache-Control header like this:
@Configuration
@EnableWebSecurity
public class WebSecurityConfiguration extends ...
3
votes
0
answers
1k
views
How to deploy Spring Boot + gradle service on Openshift
I've read tons of documentation and tutorials, but still cannot get through this.
I want to start developing a service using Spring boot and Gradle and deploy it on openshift.
With fabric8, there is ...
3
votes
0
answers
1k
views
Spring Boot application using up memory and crashing on Openshift 3.1, but not on plain Docker
I have a simple Spring Boot Application, a Spring Cloud Config Server that is going to be run on Openshift 3.1. The problem is that when running on this platform, the application increases its size ...
2
votes
1
answer
3k
views
Get Request/Second in multi-pod spring application
I have multiple docker images (pod) of the same Spring-Boot application in a load-balanced environment (OpenShift) and each docker image exposes Prometheus endpoint. I have used the following query in ...
2
votes
2
answers
427
views
DB Credentials Exposed as part job parameters when executing a task from SCDF
I have Custom Built SCDF which is built as docker image in Openshift and referred in server-deployment.yaml as docker image.I use the Oracle db to store the task meta data and is an external source ...
2
votes
1
answer
1k
views
SpringBoot Openshift POST io.undertow.util.ParameterLimitException: UT000047: The number of parameters exceeded the maximum of 1000
I have a spring boot application that is deployed on RedHat OpenShift. Whenever I have a large POST request (~11000 lines) I get this message.
java.lang.RuntimeException: io.undertow.util....
2
votes
1
answer
2k
views
Openshift : Spring boot : log4j settings -- configuration and finding the application log file
My Spring boot application on Redhat/Openshift uses the shown log4j2.xml file.
The issue is that I cannot find the application log file.
My questions are:
Below I describe the way of configuring ...
2
votes
1
answer
788
views
JWT Authentication From Ingress in OpenShift
So I'm migrating some Spring Boot microservices from Kubernetes to OpenShift. Below is the simplified situation:
Service 1: Spring Boot application that handles, exposes 2 endpoints (login and ...
2
votes
3
answers
5k
views
How to evict cache in multiple pods? I have two Openshift pods and I want to send a HTTP request for evict cache in both pods
I have two microservices pods in Openshift, I want to clean cache both microservices. I have a endpoint that clear-evict cache, the request only enter in one pod. How to avoid restart the pods for ...
2
votes
1
answer
1k
views
Can high HTTP timeout values cause any issues
I have a SpringBoot app hosted on OpenShift-Enterprise. I have one request that takes significantly more time to process due to integration with other systems. That request started getting 504 Gateway ...
2
votes
1
answer
1k
views
Springboot application in one pod not able to connect to mongodb on another pod through Openshift
I am trying to deploy mongodb pods (1 Primary & 2 Secondary) in OpenShift, they got deployed but went to "Error" state with the following error,
exception in initAndListen: IllegalOperation: ...
2
votes
1
answer
2k
views
How to monitor a spring-boot service by creating a ServiceMonitor?
I'm trying to create a servicemonitor that will instruct prometheus to scrape the metrics from my spring-boot service, but can't find the right way to do that.
I have a simple micro service with ...
2
votes
1
answer
3k
views
How to use OpenShift environment variables to configure a MySQL database
So I generated an application with JHipster.
Locally, I would just modify the database info in the application-dev.yml/application-prod.yml and everything works fine.
Now I want to deploy my ...
2
votes
0
answers
115
views
Setting NFS Path on java/spring-boot system
I want to show or download the following txt file on system developed in Java/Spring Boot:
The code that i am using to upload the files in the system on the nfs server is this:
public static String ...
2
votes
1
answer
1k
views
Hazelcast : IllegalArgumentException: Target is this node
I am running two instances of spring boot application on openshift and both are joined to hazelcast cluster. However, I can see continuously see below error message in logs.
{"timestamp":&...
2
votes
0
answers
2k
views
Java - Couchbase SDK 3.0 is throwing FeatureNotAvailableException exception
I am running Spring boot with couchbase in OpenShift. My e1 and e2 environments are working fine. But when i move the code to e3 environment, i am getting below exception.
Can someone help me to ...
2
votes
2
answers
893
views
openshift spring boot logback pod specific log file
I am trying to configure pod specific log files for a spring boot deployment in openshift (v3.11). I am using logback for logging. Currently the log file name is configured in logback.xml at the ...
2
votes
0
answers
1k
views
How deploy Spring boot SSL project in openshift
I have a spring project with SSL on by which i mean:
in my application.properties
security.require-ssl=true
So locally if i run it, like http://localhost:8080, i get
Bad Request
This combination ...
2
votes
1
answer
3k
views
Openshift secret in Spring Boot bootstrap.yml
This how my bootstrap.yml looks like.
spring:
cloud:
config:
uri: http://xxxx.com
username: ****
password: ****
vault:
host: vault-server
port: 8200
...
2
votes
1
answer
3k
views
Spring boot configure websocket on a different port than http
I have a spring boot application with websocket setup via sockJs.
public void registerStompEndpoints(StompEndpointRegistry stompEndpointRegistry) {
stompEndpointRegistry.addEndpoint("/gs-...
2
votes
1
answer
2k
views
Spring boot application wont start in openshift
I created openshift project with DIY cartridge, added postresql for DB.. now I pushed sources to cloud, but I'm getting error like the guy here (but he was not using springboot): I can't start ...
1
vote
1
answer
5k
views
Patch Request using Spring Boot Java
I have a problem with my Patch Request with OpenShift Api.
This is my actual code :
public static HttpStatus PatchHTTPRequestCustomHeaders(String url, String data) {
String Bearer = "...
1
vote
2
answers
10k
views
Unable to Deploy Spring Boot Application In Openshift
I am following the below steps to run my Spring Boot app: https://github.com/debasen/springboot-demo.git in Open shift:
Add Red Hat OpenJDK8 to my project.
2. Next
3. Add hit repository
After ...
1
vote
2
answers
1k
views
Unhandled exception 'java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
We have recently migrated a springboot application to 2.7.11 version, and while performing a load test, a nasty error raised :
"Unhandled exception 'java.lang.OutOfMemoryError: unable to create ...
1
vote
1
answer
1k
views
Name or Service not Known when calling service via spring boot in Openshift Container Platform (a cloud-based Kubernetes container platform)
I have an application which consists of a backend (spring boot) and a search engine (elasticsearch). After I deployed it into OCP, Initially I tested the connection between the two using the command &...
1
vote
1
answer
464
views
How to increase the time that Openshift/kubernetes need for run script database with flyway during pod start? Error failed liveness probe
During the microservices deployment, I use openshift, docker, with springboot and flyway. If flyway take a lot of minutes with script database during then deploy Health Check throw this error:
Killing ...
1
vote
1
answer
355
views
Openshift: How many pods my springboot app need?
I´ve a springboot aplication running on Openshift. I've not set any quota limits. How can I get how many pods replica do I need? It depend of the amount of traffic only?
1
vote
1
answer
292
views
Java Mailx - issue with Chinese characters in openshift
My usecase is to send a file in mail which has Chinese characters in it.
something like TW_TEST_1062054_COM_20191020_前端離岸風電設備製造股份有限公司_N_20201117
Reading through some posts, I realized some properties ...
1
vote
1
answer
5k
views
Spring boot actuator health check in Openshift/Kubernetes
We have a situation where we have an abundance of Spring boot applications running in containers (on OpenShift) that access centralized infrastructure (external to the pod) such as databases, queues, ...
1
vote
1
answer
2k
views
How to use Openshift secrets to establish MQ client connection over SSL
I'm trying to combine suggestions on how to use SSL with openshift :
https://blog.openshift.com/openshift-demo-part-13-using-ssl/
with those on how to use ssl with mq:
Spring Configuration for JMS (...
1
vote
1
answer
528
views
How to connect SpringBoot (on Wildfly) to MySQL on openshift 3?
To put a SpringBoot application on openshift 3 the suggested route is by using the s2i of Wildfly. For the moment this is sufficient for me.
How can I conect SpringBoot (on Wildfly) to MySQL at ...
1
vote
1
answer
41
views
spring security + keycloak + openshift
I have 2 pods running in the same openshift namespace
spring boot (with spring security) pod
keycloak pod
Currently my application.properties look like this
spring.security.oauth2.client....
1
vote
1
answer
1k
views
mounting secrets in Openshift
I'm trying to move java SpringBoot application to Openshift.
I have keystore file defined in the application.yaml like this:
platform:
messaging:
mq:
keystore-path: classpath:certificates/...