Questions tagged [openshift]
OpenShift is a commercial enterprise-ready container platform built on top of Kubernetes which allows you to run containerized applications
3,415
questions with no upvoted or accepted answers
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
0
answers
256
views
Migrating to Openshift Online Stuck
I'm migrating my podcast site, but build is pending for more than an hour.
oc get events 19:09:02
LASTSEEN FIRSTSEEN COUNT NAME ...
9
votes
0
answers
3k
views
Openshift 3 - Build stuck in pending state
I have been using Openshift 3 seamlessly to build and deploy a Node.js application for several months.
Since yesterday, new builds of the same app systematically fail because they are stuck forever ...
8
votes
2
answers
3k
views
Docker Inside Docker oom_score_adj: invalid argument
On Kubernetes, to build docker images, we use Docker Inside Docker (dind) where a docker daemon will be running as a privileged user
But some times times we have observed that the docker image ...
8
votes
0
answers
662
views
nodejs memory leak : process usage increase more than heap
I got some memory leak issue on my nodejs app executed by openshift docker soulution.
when I try to monitor memory usage using process rss, I found process memory increased over time.
I'm trying to ...
8
votes
2
answers
7k
views
Docker: Insert certificate into ketstore
I'm trying to add a certificate into $JAVA_HOME/jre/lib/security/cacerts truststore on my Dockerfile:
FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
RUN keytool -import -alias vault -storepass ...
6
votes
2
answers
4k
views
Openshift, 503 Service Unavailable. No server is available to handle this request
I have a scalable PHP 5.4 cartridge on Openshift, with a bronze account.
It's a wordpress blog and I've used it until 2 weeks ago.
Today, I returned to visit it and it says:
503 Service ...
6
votes
0
answers
322
views
Deploying production ember-cli app on openshift
Can someone share step by step how to deploy and run a production ember-cli app on openshift?
I am not sure of the process and openshift cli steps to do this.
Locally I use ember serve but I'm not ...
6
votes
0
answers
3k
views
301 Redirect Preventing CORS OPTIONS Request on Openshift
I'm writing a RESTful api with Laravel 4 that will be used by a Backbone.js app.
When I deploy my code using GIT, I receive a message saying:
Application directory "public/" selected as ...
5
votes
2
answers
8k
views
Issue: nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
I am trying to run Nginx on Openshift but facing this directory permissions issues. Due to this error container is not creating.
The following permissions are set to files created manually.
drwxr-xr-x....
5
votes
0
answers
2k
views
Unable to deploy mongodb community operator in openshift
I'm trying to deploy the mongodb community operator in openshift 3.11, using the following commands:
git clone https://github.com/mongodb/mongodb-kubernetes-operator.git
cd mongodb-kubernetes-operator ...
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
3k
views
OpenShift service with sessionAffinity forwards traffic to two pods
OpenShift Container Platform 3.11
Assume a setup with one client pod and three equal server pods in the same namespace. The server pods are available via a service:
apiVersion: v1
kind: Service
...
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.
...
5
votes
0
answers
151
views
Where to get a reference of the OpenShift template "language"?
I'm trying to learn how to write an OpenShift template. I found the relevant section in the developer guide. Which commes with some examples.
But I cannot find any defintions about the template file ...
5
votes
0
answers
1k
views
The pod has been stuck in the pending state for more than five minutes
Hello I new to openshift online . Tried to deploy mysql pod and got this Error n command line
error: update acceptor rejected mysql-8: pods for deployment "mysql-8" took longer than 600 seconds to ...
5
votes
0
answers
388
views
OpenShift: rhc setup receives error 403
When first setting up the rhc setup for our openshift enterprise installation, I get the following error:
Connect without checking the certificate? (yes|no): yes
DEBUG: Connecting to https://master....
5
votes
1
answer
1k
views
How to upgrade NodeJS for my existing application on openshift?
I have an application running on OpenShift using NodeJS 0.10 but now I want to upgrade it to latest 0.12. I added to package.json:
"engines": {
"node": ">= 0.12.0",
"npm": ">= 1.0.0"
...
5
votes
0
answers
1k
views
GLIBC library version missmatch error while starting nodejs application on Openshift
I am newbie to MEAN stack and Linux hence please forgive me if my question is too obvious and stupid.
I have hosted a Nodejs application on Openshift. While trying to start the application I am ...
5
votes
0
answers
990
views
Openshift - some requests fail (proxy error)
I'm using openshift to deploy some little applications I built. Everything is ok, but SOMETIMES, don't ask me why, when I try to log-in (post request), I get this error (after waiting 5 minutes more ...
5
votes
1
answer
836
views
Openshift (node.js) fails to install jsdom
Been using Openshift / Node.Js for a while now, mostly problem free. Usually I install (via npm) modules to my local (windows) machine, develop, than git-deploy to Openshift and all goes well.
I ...
5
votes
1
answer
4k
views
Unable to bind to a port on Openshift
I am running an embedded activemq message server in my application on openshift. According to this, you can only bind on 15000 - 35530. I've tried doing the following, but it's throwing a serious ...
5
votes
1
answer
3k
views
unexpected end of multipart data
I have a .net core 2.0 API service that gets two files (XML and word) and transfers them to a node js server that saves them to a MongoDB.
when I'm hosting the net core service on my localhost ...
4
votes
1
answer
206
views
Kubernetes Ingress: Having Load Balancing + Session Stickiness by Header/Cookie Value provided in the Request
Following scenario in my cluster:
I have a Spring Boot RestAPI with 1 Pod running, on which we receive requests. Each of these requests go through a standart ingress, which routes to a PowerShell HTTP ...
4
votes
0
answers
4k
views
Helm Chart Error when using functions: " invalid value; expected string"
I defined the following ConfigMap:
apiVersion: v1
kind: ConfigMap
metadata:
name: test-application-yaml
data:
application.yaml: |-
testOne: {{ .Values.testOne | nindent 6 }}
testTwo: {{ ....
4
votes
2
answers
2k
views
When does Dash release memory?
I wrote a python Dash app and made it available within my organization using OpenShift. I’m not really knowledgeable about OpenShift but it seems to be running correctly, including when multiple users ...
4
votes
1
answer
784
views
Any standard guidelines for choosing the USER ID and GROUP ID for Docker images in Dockerfile?
I normally used 1111 as user id and group id for my containers but when I deployed my application on OpenShift platform, I got error while scheduling of pods.
unable to validate against any security ...
4
votes
1
answer
396
views
Kubernetes ConfigMap automatically changes Literal to Folded Block Scalar
I'm having problems with ConfigMap creation on OpenShift 4. I'm trying to add a data element which holds Java application.properties and to format the YAML using literal block scalar. Example:
data:
...
4
votes
0
answers
362
views
Pod/Container directory used to mount nfs path gets empty after deployment
The following is my kubernetes/openshift deployment configuration template, along with its persistent volumes and persistent volume claims:
apiVersion: v1
kind: DeploymentConfig
metadata:
name: ...
4
votes
1
answer
143
views
Openshift RBAC policy to allow projects in preview environment to access images from different project
I am using OKD with Jenkinsx setup and jenkinsx creates a project dynamically based on a Pull Request created by a developer and deploys the services in that project.
But the services in those ...
4
votes
0
answers
5k
views
airflow kubernetes not reading pod_template_file
I am running Airflow with k8s executor.
I have everything set up under the [kubernetes] section and things are working fine. However, I would prefer to use a pod file for the worker.
So I generated ...
4
votes
1
answer
4k
views
How to mount network share (SAMBA windows share) with running container in openshift
I have tried cifs for mounting network share with host then host to docker container. That is working. But I want to mount direct with container.
4
votes
2
answers
3k
views
Openshift oc rsh Increase Timeout
If I oc rsh <pod>, the shell will timeout in a matter of seconds unless the shell is actively printing output.
How can I increase or eliminate the timeout of oc rsh ?
4
votes
1
answer
3k
views
MongoDB on OpenShift: /data/db/mongod.lock Resource temporarily unavailable
I keep getting exception in initAndListen: 98 Unable to lock file: /data/db/mongod.lock Resource temporarily unavailable. Is a mongod instance already running?, terminating upon a new deploy of ...
4
votes
2
answers
5k
views
oc cluster up timeout waiting for condition
I am trying to setup openshift origin on my local Virtualbox centos 7.4. This is a all-in-one environment for study purpose only. I followed the exact document:
https://docs.okd.io/latest/...
4
votes
0
answers
531
views
OpenShift Origin Nodes WIth Multiple Network Interfaces
Is it possible to configure OpenShift to use a separate interface on nodes+masters? For example, let's say I have a cluster where each machine has two network interfaces on different subnets (...
4
votes
0
answers
1k
views
Pivotal Cloud Foundry vs OpenShift
I'm looking for a PaaS solution and lately I've been looking into Pivotal Cloud Foundry and OpenShift Origin, trying to compare them.
And honestly, it feels like both offer pretty much the same ...
4
votes
1
answer
790
views
Can I generate incremental Build Name in an OpenShift Origin build?
I am building a image using a BuildConfig, in every build a new image with the tag latest is created because I am using this config
"output": {
"to": {
"kind": "ImageStreamTag"
"name": "...
4
votes
0
answers
432
views
How do I manage session stickiness/affinity in Tomcat container in Redhat Openshift when Reverse Proxy templates are reloaded between requests?
Not looking for a code but a high level answer would suffice.
I have a Spring MVC web application which is deployed on Tomcat container in Redhat Openshift cloud platform. It is deployed on 2 servers,...
4
votes
1
answer
678
views
Openshift deploy backend and frontend separately
I have an app on openshift. Currently backend and frontend are mixed up in a single WAR archive.
Though I want to separate frontend and backend into 2 projects and deploy them seperately on the same ...
4
votes
0
answers
124
views
How to add SSL to opensift
Hello I finally got my ssl certificate from wosign (namely: 1_root_bundle.crt and 2_mydomain.com.crt)
I don't know how to add them to openshift. I went to the applications and edited mydomain.com
...
4
votes
0
answers
518
views
Could not find i18n-0.7.0 in any of the sources (Bundler::GemNotFound) Openshift
I've been trying to push my RoR application to OpenShift, following the railsgirls tutorial, I come across this error while testing in development mode. Could not find i18n-0.7.0 in any of the sources ...
4
votes
1
answer
399
views
Updating gcc in openshift
Is there a way to upgrade or atleast copy a standalone version of gcc in the openshift server. I recently created a dev app and my project needs c++0x feature support.
The gcc that was present in the ...
4
votes
0
answers
817
views
NPM install on OpenShift Jenkins gear
I (like a number of others) are struggling to get Jenkins cartridges on Openshift to play nicely with NPM. Following the advice of others on SO, I have managed to navigate the NPM cache redirection ...
4
votes
0
answers
1k
views
In Django cursor.execute("select ..") randomly returns None
I am running Django + MySql on OpenShift server and have this problem.
Code:
from django.db import connection
...
cursor = connection.cursor()
somedate = calculateSomeDate()
query = "SELECT id ...
4
votes
1
answer
212
views
An exception occurred while creating local git repository -Openshift
we are developing the project and upload and run it in Openshift from past 4 months.
our project in JAVA platform and using phpmyadmin database of openshift and using eclipse kepler IDE and we ...
4
votes
3
answers
2k
views
Openshift Tomcat 404 Not Found
I am a newbee in OpenShift,
I have created a Spring Web Application and deployed it on OpenShift in an non-scalable environment.
The application is built and deployed successfully with no error in ...
4
votes
1
answer
4k
views
Openshift application build error: "JBAS014807: Management resource '[(\"subsystem\" => \"deployment-scanner\")]' not found"
I have had this error for a long time, but it seems OK with running the application. However, I am always concerned that there might be some hidden costs down the road if I don't fix it.
This is a ...
4
votes
0
answers
1k
views
Proxy Error 502 Openshift
I'am using Openshift Demo in my local machine and Drupal project, when i submit in a form.php i need to create an app with the REST API with the curl lib, and i get the :
Proxy Error 502
The proxy ...