Questions tagged [openshift]
OpenShift is a commercial enterprise-ready container platform built on top of Kubernetes which allows you to run containerized applications
7,921
questions
16
votes
2
answers
6k
views
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
16
votes
1
answer
4k
views
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 ...
16
votes
6
answers
15k
views
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 ...
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 ...
16
votes
1
answer
18k
views
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 ...
15
votes
4
answers
18k
views
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 ...
15
votes
2
answers
23k
views
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
...
15
votes
4
answers
14k
views
Error installing hyperkit on HomeBrew in M1 Silicon
I'm trying to install hyperkit on MacOS 12.1 M1 Silicon and I get the following error.
% brew install hyperkit
Error: hyperkit: no bottle available!
You can try to install from source with:
...
15
votes
5
answers
35k
views
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 ...
15
votes
6
answers
5k
views
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 ...
15
votes
6
answers
3k
views
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?
15
votes
2
answers
12k
views
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 ...
14
votes
2
answers
25k
views
how do I tail logs in open shift using oc client
From the question you can tell I'm a newb.
At the moment to get the logs of my pod I'm doing a ...
oc logs -f api-myapp-v1-48-cdrs2
This shows me everything in the log. How can I tail them instead?
...
14
votes
1
answer
19k
views
Request vs limit cpu in kubernetes/openshift
I have some dilemma to choose what should be the right request and limit setting for a pod in Openshift. Some data:
during start up, the application requires at least 600 millicores to be able to ...
14
votes
1
answer
6k
views
Can't send email through openshift
I have website hosted at OpenShift. I tried to send mail using mail function of php. It just returned true, but no mail is received to whom I had sent.
Please tell me procedure for sending the mail.
...
14
votes
2
answers
13k
views
Openshift java.net.SocketException: Permission denied
I am using Java8 and have a Chat Server that works perfectly on my localhost, but when I deploy it to an OpenShift server, I get the following error:
java.net.SocketException: Permission denied
...
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 ...
13
votes
4
answers
5k
views
How can I add private information to OpenShift environment variables?
Authentication information such as database connection strings or passwords should almost never be stored in version control systems.
It looks like the only method of specifying environment variables ...
13
votes
2
answers
7k
views
Openshift rhc setup "The OpenShift server is not responding correctly."
I would like to setup access to my open shift application. I have rhc client installed and wanted to run
rhc setup
I'm asked about providing server hostname:
Enter the server hostname: |openshift....
13
votes
2
answers
28k
views
OpenShift Service Proxy timeout
I have an application deployed on OpenShift Container Platform v3.6. It consists of multiple services interconnected to each other.
The frontend service calls a time consuming function of the ...
13
votes
4
answers
20k
views
how to connect to the database in openshift application
I did as following
MySQL 5.1 database added. Please make note of these credentials:
Root User: xxxxxxx
Root Password: xxxxxxx
Database Name: php
Connection URL: mysql://$...
13
votes
3
answers
26k
views
ERROR: column "id" is of type uuid but expression is of type bytea
My entity looks like
@Entity
public class Member {
@Id
private UUID id;
@Column(name = "member_external_id", unique = true, nullable = false)
private String memberExternalId;
@...
13
votes
2
answers
9k
views
Moving a docker-compose container to openshift V3
I would like to move the Omnibus gitlab docker image to openshift V3,
so I've got the dockerfile and docker-compose files @ https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/docker.
What is ...
13
votes
1
answer
2k
views
openshift and let's encrypt certificates
Is there any integration for Let's Encrypt in OpenShift (or, is this planned)? Let's encrypt are going to issue certs that expire in 90 days[1] -- and a big part of their plan is to have automation ...
13
votes
2
answers
211
views
What is resetting the PATH variable at the last second during an OpenShift v2 push hook?
TL;DR: Working app, cloned it, clone doesn't start correctly from push hook (but works fine manually if I ssh in.) PATH has correct Node version added to it, but somewhere right in the last step, the ...
12
votes
1
answer
32k
views
Symfony2: You have requested a non-existent parameter
I have checked similar questions on SO, but they did not solve my issue.
I am deploying a Symfony2 application on Openshift. It works well on my Windows 10 laptop, but I am getting the following ...
12
votes
1
answer
11k
views
OpenShift node.js Error: listen EACCES
I have been using OpenShift with node.js and socket.io. My code is:
server.listen(process.end.OPENSHIFT_NODEJS_PORT || 3000);
My code says that it returns port 8080.
However, I get this error:
...
12
votes
4
answers
22k
views
Oc get pods - Command to just print pod names
I want to get a list of just the pod names and the Result should not include the status, number of instances etc.
I am using the command
oc get pods
It prints
Pod1-qawer Running ...
12
votes
1
answer
5k
views
Best cartridge for deploying static html/javascript files to openshift?
I want to deploy a pure angular-js frontend appication to openshift. This application contains only html/css/js files.
What is the best cartridge that I can use, php5, tomcat, nodes.js?
Thanks
12
votes
5
answers
31k
views
ETIMEDOUT connect error using nodemailer in Nodejs Openshift application
I'm facing some problems using the nodemailer module in my node.js single gear non-scalable application in Openshift. As the documentation suggested, I initialized the transporter object and used the ...
12
votes
2
answers
6k
views
What's an openshift gear? Can it be the equivalent of a web-worker?
Openshift pricing model states that you can have 3 gears in the free tier.
Other services normally explain their free tiers in number of "web workers" that you can have.
What is an openshift's gear ...
12
votes
4
answers
21k
views
Restart Pod when secrets gets updated
We are using secret as environment variables on pod, but every time we have updated on secrets, we are redeploying the pods to take changes effect. We are looking for a mechanism where Pods get ...
12
votes
2
answers
3k
views
Unable to install using npm because permissions in openshift
I am trying to make npm working on openshift. When I try to install a package using npm install :
$npm install bower
npm ERR! Error: EACCES, mkdir '/var/lib/openshift/5425aaa04******0094/.npm'
npm ...
12
votes
3
answers
29k
views
Environment variable in PHP-docker container
I want to show an env var in my docker container.
The PHP script looks like this:
<html>
<head>
<title>Show Use of environment variables</title>
</head>
<body>...
12
votes
3
answers
3k
views
Django serving media files (user uploaded files ) in openshift
I have successfully deployed my Django project in openshift. But I need to be able to serve files that are uploaded by users. I user MEDIA_ROOT and MEDIA_URL for that. I followed this tutorial here, ...
12
votes
2
answers
4k
views
Can't connect through WiFi, but possible through Mobile Data
I've a php file named test.php stored in my Openshift server (http://phpgear-shifz.rhcloud.com/v1/test.php) with the below code.
<?php
echo "Hello";
Task
I am trying to download the text from an ...
12
votes
1
answer
3k
views
Need to know Gear/Hour meaning in pricinng section of Openshift
I am a newbie of OpenShift PaaS plate form. I am still evaluating OpenShift and planning to upgrade to "Bronze Plan" but first I want to understand what is meaning of "gear/hour" in the pricing ...
12
votes
1
answer
8k
views
How to use image stream in deploy configuration for OpenShift
I want my deploy configuration to use an image that was the output of a build configuration.
I am currently using something like this:
- apiVersion: v1
kind: DeploymentConfig
metadata:
...
12
votes
2
answers
802
views
Openshift, a web Service that invoke another web Service
I created a Tomcat 7 app in Openshift, and I deployed my web services there. the problem is that my web service is supposed to call another service. No results are displayed. I tested the service in ...
11
votes
4
answers
23k
views
How do I change the permissions in openshift container platform?
I am new to Openshift.
I have deployed an application in openshift. When I checked the logs, there is permission denied error for some files.
Now, I want to change the permissions on the the ...
11
votes
3
answers
17k
views
How do you run an Openshift Docker container as something besides root?
I'm currently running Openshift, but I am running into a problem when I try to build/deploy my custom Docker container. The container works properly on my local machine, but once it gets built in ...
11
votes
1
answer
9k
views
heroku vs openshift which is better PaaS?
I have been using Heroku since last 3-4 years and now I have clients wanted to use openshift for their ruby application deploy.
I know heroku features and new to openshift. I know few features of ...
11
votes
2
answers
50k
views
Does Tomcat 7 support Java 8?
In offcial page of Tomcat it says that Tomcat 7 supports Java 8. If I download this and run with Java 8 it works.
But, on Openshift is Tomcat 7 (JBoss EWS 2.0). In this webpage it says that EWS 2.0 ...
11
votes
4
answers
13k
views
Differences between OpenShift and Kubernetes
What's the difference between OpenShift and Kubernetes and when should you use each? I understand that OpenShift is running Kubernetes under the hood but am looking to determine when running OpenShift ...
11
votes
6
answers
18k
views
Mixed Content error because of Keycloak default login redirection
INFORMATION NEEDED:
I use Keycloak (Docker version) behind a Spring project.
(The client side of this project is React and communication between client and backend is provided by REST services.)
...
11
votes
2
answers
18k
views
apache tomcat catalina as maven dependency for CORS filter
I'm using org.apache.catalina.filters.CorsFilter in my webapp. So I specify the maven dependency
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-...
11
votes
0
answers
241
views
Logs are not received in Hawkular APM from Zipkin Client
I have client application instrumented with Zipkin library with configuration in spring application.properties .
camel.zipkin.host-name=hawkular-apm-server.com
camel.zipkin.port=443
camel.zipkin....
11
votes
0
answers
32k
views
'java.security.cert.CertificateExpiredException: NotAfter' upon connecting secure web socket
I am trying to connect to a secured web socket to consume a API. Below is the source code. Hosting environment configuration is JRE 1.7 and Tomcat 7.
import java.net.URI;
import javax.websocket....
10
votes
1
answer
11k
views
Openshift vs Rancher, what are the differences? [closed]
I am totally new to this two technologies (I know docker and kubernetes btw).
Haven't find much an the web about this comparison topic.
I have read that Openshift is used by more companies,but a ...
10
votes
2
answers
8k
views
OpenShift: "Failed to execute control start" on node application
I realize in advance this is kind of a vague question, but I'm stumped as to what else I can try here...
I've been going through other SO questions and following their recommendations but so far ...