Questions tagged [openshift]

This tag doesn't currently have an excerpt. Help contribute by writing one

7609 questions
17
votes
3 answers

OpenShift oc create fails with "already exists"

Attempting to create a set of resources based on a file via oc create fails if they already exist. According to the docs here oc create should: Parse a configuration file and create one or more OpenShift Enterprise objects ... Any existing…
Tom Manterfield
  • 6,515
  • 6
  • 36
  • 52
17
votes
5 answers

How to set up Openshift with let's encrypt (letsencrypt)

How do I set up Openshift app to work with let's encrypt ? NB Openshift does not work with a simple python webserver approach to server, you need to use the correct port and bind to the correct IP address. Also the app/gear does not necessary have a…
Brendan Sleight
  • 231
  • 2
  • 6
16
votes
2 answers

Vite: Could not resolve entry module (index.html)

I am new to Openshift 3.11 deployment, I created a Multistage Dockerfile for a React application, the build want correctly on my local machine, but when I run on the openshift cluster I get the error below: > kncare-ui@0.1.0 build > tsc && vite…
Bilal
  • 181
  • 1
  • 1
  • 6
16
votes
1 answer

OpenShift CLI: oc vs rhc?

What is the difference between rhc and oc CLI-tools? As I see, they do almost the same: oc: The OpenShift CLI exposes commands for managing your applications, as well as lower level tools to interact with each component of your system. rhc…
d-d
  • 1,775
  • 3
  • 20
  • 29
16
votes
6 answers

Could not complete schema update: org.h2.jdbc.JdbcSQLException: Table "PG_CLASS" not found; SQL statement

I have next problem when deploy application on openshift. I use a wildfly application server and PostgreSQL cartrige. In persistence.xml i set property "hibernate.hbm2ddl.auto" value="update". In wildfly modules in org/main/postgresql i see that…
Klimov Peter
  • 308
  • 1
  • 2
  • 12
16
votes
2 answers

Ping Service to stop OpenShift Application from IDLE?

I am running a lightweight API in the OpenShift Cloud. I just realized that after 48h the application goes into IDLE mode. Is there kind of a ping service to avoid this issue? best M
mboeckle
  • 938
  • 13
  • 29
16
votes
1 answer

How to connect OpenShift with a private BitBucket Repository

I want to host a website on OpenShift but I want my code to synchronize automatically with a "free but private" service like Git, so I found BitBucket. I tried to connect it by my self by pasting this key from my OpenShift…
Kil'jaeden
  • 939
  • 2
  • 11
  • 19
15
votes
6 answers

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 to these N instances. Everything runs fine and…
Vikk
  • 3,353
  • 3
  • 22
  • 24
15
votes
2 answers

How to delete or overwrite a secret in OpenShift?

I'm trying to create a secret on OpenShift v3.3.0 using: oc create secret generic my-secret --from-file=application-cloud.properties=src/main/resources/application-cloud.properties -n my-project Because I created the same secret earlier, I get…
Paulo Merson
  • 13,270
  • 8
  • 79
  • 72
15
votes
2 answers

Deploy WAR file to Openshift without using GIT?

I want to upload a WAR file to my Openshift account , but it forces me to use GIT ot GITHUB (here). Please forgive me for saying this , but this is very very annoying . Is there any way upload a WAR file straight to my application without using…
JAN
  • 21,236
  • 66
  • 181
  • 318
15
votes
6 answers

Openshift app redirecting to https://domain_name/app

I have hosted an app on Redhat Open shift. I didn't change anything but it started redirecting to https://www.plovist.com/app and throwing 404 error. Can anyone help me in solving this?
Coderaemon
  • 3,619
  • 6
  • 27
  • 50
15
votes
6 answers

openshift application goes idle and halts its cron jobs

I use openshift to run a script from time to time with the cron cartridge. however, as my application has no web activity (yet) it goes idle and my process doesn't run. one could think of an ugly solution to generate fake web-load by using another…
akiva
  • 2,677
  • 3
  • 31
  • 40
14
votes
1 answer

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 routes it to the correct services Multiple…
Nexonus
  • 706
  • 6
  • 26
14
votes
5 answers

How to get Openshift session token using rest api calls

As part of an automated tests suite I have to use OpenShift's REST APIs to send commands and get OpenShift's status. To authenticate these API calls I need to embed an authorization token in every call. Currently, I get this token by executing the…
Perennialista
  • 1,083
  • 2
  • 12
  • 22
14
votes
4 answers

Kubernetes - Liveness and Readiness probe implementation

I'm developing a service using Spring and deploying it on OpenShift. Currently I'm using Spring Actuator health endpoint to serve as a liveness and readiness probe for Kubernetes. However, I will add a call to another service in a Actuator health…
dplesa
  • 1,355
  • 6
  • 23
  • 56