Questions tagged [openshift]

OpenShift is a commercial enterprise-ready container platform built on top of Kubernetes which allows you to run containerized applications

Filter by
Sorted by
Tagged with
6 votes
4 answers
15k views

Project deletion struck in Terminating

Openshift v3.11.0+0cbc58b I am trying to delete project from openshift as admin user, but project get struck in terminating state. I have tried running the following command but no use, oc delete ...
Anurag's user avatar
  • 71
6 votes
4 answers
15k views

Openshift Route is not load balancing from Service pods

I have tried before on Openshift Origin 3.9 and Online. I have deployed a simple hello world php app on Openshift. It has a Service and a Route. When I call the route, I am getting expected output ...
John Seen's user avatar
  • 719
6 votes
2 answers
9k views

How to open DB connection in Openshift? [closed]

This is my dbcon file in PHP. Basically, I need to connect my PHP application with openshift MySQL DB. Here's what I did. <?php // Database Connection Setting $dbhost = "127.0.0.1"; // ...
Kakashi Hatake's user avatar
6 votes
5 answers
7k views

rhc ssh [No system SSH available] error

I want view my openshift application log in my cmd. I did try : rhc ssh appname that time i am getting: No system SSH available. Please use the --ssh option to specify the path to your SSH ...
nmkkannan's user avatar
  • 1,291
6 votes
3 answers
11k views

How to have multiple object types in a single openshift yaml template?

Here is the sample template for single PersistentVolumeClaim with name : claim1 apiVersion: "v1" kind: "PersistentVolumeClaim" metadata: name: "claim1" spec: accessModes: - "ReadWriteOnce" ...
rakesh kotian's user avatar
6 votes
2 answers
5k views

Purpose of adding Openshift intrastructure nodes

I can see often Openshift architectures including "Infrastructure Nodes" in the picture. What is the difference between these nodes and the masters ? I understand that Infrastructure Nodes typically ...
Carla's user avatar
  • 3,236
6 votes
4 answers
13k views

OpenShift Deployment

Hi I am new to open shift . I don't know how to create repository and deploying our project to it. I have configured it through command prompt. After installing rhc successfully through command prompt ...
Ravi Dutt's user avatar
  • 135
6 votes
4 answers
4k views

Ruby "bundle install" error on Openshift

I'am fairly new in Ruby and terms of deploying app through remote tools. I've tried to deploy my App on free openshift account. And I connot run application. When I run application i get this error: ...
Ssss Ppppp's user avatar
  • 4,234
6 votes
2 answers
7k views

Install python packages on OpenShift

I'm trying to install python packages on OpenShift but I see a dearth of pages about the best way to do this. Can someone please suggest the best way of getting on say oauth2 and simplejson. I've ...
disruptive's user avatar
  • 5,829
6 votes
1 answer
2k views

Openshift redirects wp-admin to https

In general option in wordpress, I have changed the wordpress directory to be on http://mywebsite.com but wordpress dashboard is still in htpps causing mixed content warning and images in dashboard are ...
Indra's user avatar
  • 1,338
6 votes
2 answers
19k views

How to access container within an openshift pod

I've couple of containers inside an openshift POD. Each container is running two different applications say ContainerOne (ApplicationOne), ContainerTwo(ApplicationTwo) how can I access each of these ...
Ajay Srikanth's user avatar
6 votes
2 answers
2k views

Openshift Port forwarding

There already a lot of topics about it. But I'm stuck I configured ssh with succes! Now I like to configure the portforwarding for connection with TOAD. I used this tut: https://blog.openshift.com/...
ErazerBrecht's user avatar
  • 1,603
6 votes
2 answers
5k views

I want to connect openshift mongodb database from my local client tools

I have my premium openshift account I have all types of access in openshift I have ssh key & user's credentials I have MongoVUE & Robomongo & others client tools to open mongodb database. ...
Dr. Piyush Dholariya's user avatar
6 votes
4 answers
30k views

Java SSL DH Keypair Generation - Prime Size Error

I'm currently implementing Reddit OAuth2 login into my web app. The handshake and token exchange work fine when testing locally but when running on the server (hosted on 'OpenShift' DIY cartridge) I ...
ALP_Squid's user avatar
6 votes
2 answers
6k views

Node.js Deployment in openshift

I was trying to deploy a Node.js application to the openshift as in this link here I understand this code var http = require('http'); var server = http.createServer(function(req, res) { res....
jeewan's user avatar
  • 1,605
6 votes
1 answer
5k views

OC command to remove multiple old tag(s) from an Image Stream?

I know oc tag -d python:3.5 will remove only 3.5 tag.However I would like to remove multiple old tags from the same Image Stream using oc command. For instance image streams phython:rel-1, phython:rel-...
srk's user avatar
  • 3,656
6 votes
1 answer
8k views

OpenShift oc new-app IMAGE versus oc new-app --docker-image

The syntax for creating a new application on OpenShift based on a Docker image is a little confusing: Usage: oc new-app (IMAGE | IMAGESTREAM | TEMPLATE | PATH | URL ...) [options] . . . Options: ....
Paulo Merson's user avatar
  • 13.9k
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. ...
Tomasz Mularczyk's user avatar
6 votes
3 answers
4k views

Pod unable to install packages(apt-get update or apt-get install )

I have observed that the pods in my cluster is not able to install the packages when exec to the pod . While debugging i have realized that its due to /etc/resolv.conf entries. The /etc/resolv.conf ...
Rakesh Kotian's user avatar
6 votes
2 answers
4k views

Apache Spark standalone for Anonymous UID (Without user name)

I am starting Apache spark slave node on OpenShift platform. OpenShift internally start the docker image as an Anonymous user (User without name but just UID). I am getting following exception 17/07/...
Naveen K's user avatar
6 votes
1 answer
2k views

mongoid yaml combines environment variables for hosts

I am new to rails and mongoid, I have mongoid.yml file that contains the entries as follows: development: # Configure available database clients. (required) clients: # Defines the default ...
Zennichimaro's user avatar
  • 5,266
6 votes
1 answer
2k views

Mongoose OpenShift Connection

I'm building an application on openShift using nodejs and mongodb. I'm also using mongoose and try to connect with this code var url = process.env.OPENSHIFT_MONGODB_DB_URL; var db = mongoose....
Manuel Castro's user avatar
6 votes
2 answers
642 views

How do I downgrade my gear type in openshift?

I've accidentally selected the large gear when I was creating my application in openshift. Is there a way to downgrade the gear type without actually recreating my app? Like from large to to medium or ...
ginad's user avatar
  • 1,953
6 votes
3 answers
1k views

Creating an Express JS 4.0 application with https on Openshift, including http redirection

Following another SO question, the latest I have been trying is (see ligatures.net): self.ipaddress = process.env.OPENSHIFT_NODEJS_IP; self.port = process.env.OPENSHIFT_NODEJS_PORT || 443; if (...
Jérôme Verstrynge's user avatar
6 votes
1 answer
9k views

fsGroup vs supplementalGroups

I'm running my deployment on OpenShift, and found that I need to have a GID of 2121 to have write access. I still don't seem to have write access when I try this: security: podSecurityContext: ...
Kun Hwi Ko's user avatar
6 votes
2 answers
7k views

Openshift: Expose postgresql remotely

I've create a postgresql instance into my openshift origin v3. It's running correctly, however I don't quite figure out why I am not able to reach it remotely. I've exposed a route: $oc get routes ...
Jordi's user avatar
  • 22.1k
6 votes
2 answers
12k views

Openshift - 'oc' commands fail with "Unable to connect to the server: x509: certificate signed by unknown authority"

After installing openshift locally, I can start minishift. on https://192.168.x.y:8443 When starting an 'oc' command, like 'oc project', then I get this error: Unable to connect to the server: x509:...
tm1701's user avatar
  • 7,287
6 votes
2 answers
14k views

Declarative Jenkins Pipeline use existing Kubernetes Pod Template

I am using the OpenShift Jenkins image within an OpenShift Cluster. This default Jenkins image results in a Jenkins container that is preconfigured to point to my Kubernetes cluster. Additionally, the ...
ssc327's user avatar
  • 700
6 votes
1 answer
2k views

Trying to run bower install on an openshift app

i just deployed a git repo to my Openshift app. The game runs locally on my computer by running gulp Trying this on Openshift after ssh'ing I just installed a local bower npm install bower and ...
SuperUberDuper's user avatar
6 votes
1 answer
2k views

How to automate sync between a Github repository and Openshift?

What is the best way to automate syn between Github repository and Openshift ? I found this documentation in openshift : https://www.openshift.com/forums/openshift/how-to-keep-a-github-repository-and-...
mcbjam's user avatar
  • 7,394
6 votes
1 answer
1k views

How to specify values for parent Helm chart

I am trying to configure Prometheus, which is included in the Gitlab Helm chart according to https://gitlab.com/charts/gitlab/blob/master/requirements.yaml My main issue is how to configure ...
djuarezg's user avatar
  • 2,415
6 votes
1 answer
4k views

Red Hat OpenShift: cannot build/deploy node app because "Output image could not be resolved"

I have linked my GitHub repo to an OpenShift app, added the main property and start script to the package.json, but under Builds, it says "Status: Output image could not be resolved. Started: not ...
sdfsdf's user avatar
  • 5,380
6 votes
2 answers
8k views

How to fix Openshift pod start failed with NodeUnderDiskPressure?

I start openshift locally using oc cluster up Then I create a pod using hello-pod.json with this command oc create -f examples/hello-openshift/hello-pod.json The pod is created but it can't ...
Sean Nguyen's user avatar
  • 12.8k
6 votes
2 answers
206 views

how to setup openshift wordpress setup on localhost

I am amazed that no information on how to setup openshift wordpress in local environment. They also don't have full wordpress structure to set it up on localhost. Their information on the site also ...
jit's user avatar
  • 1,626
6 votes
1 answer
18k views

Zookeeper: Hostname resolution fails

I am running Zookeeper in an OpenShift/Kubernetes environment. I have setup zookeeper as a StatefulSet in order to reliably persist config data. I configured three servers in my zoo.cfg by hostname, ...
Franz Wimmer's user avatar
  • 1,478
6 votes
2 answers
976 views

Jenkins on Openshift cannot clone repo

I'm new to both Jenkins and Openshift so getting tied up a bit. I have set up Jenkins and pointed it to my github repo, but it can't clone it because I can't find anywhere to store my git credentials,...
alsandair's user avatar
  • 312
6 votes
1 answer
2k views

Openshift: how to hide server js file in a node.js app?

The server-side javascript of my app is in a file called "server.js". If anyone runs [app-name].rhcloud.com/server.js in the browser, he will be able to read all the information inside the file. So, ...
00ddie's user avatar
  • 91
6 votes
1 answer
1k views

How to set node ip as nameserver in dnsConfig?

Im overriding the the dns policy of a pod since I'm facing a issue with default /etc/resolv.conf of the pod. Another issue is that the pod is not able to connect to smtp server server due to default /...
Rakesh Kotian's user avatar
6 votes
1 answer
5k views

OpenShift: Access-Control-Allow-Origin set by server for GET request disappears on way back

I've run into a strange behavior on OpenShift. I run a REST application on OpenShift which have CORS Filter enabled to set Access-Control-Allow-Origin header. This works fine on local jboss for all ...
roman's user avatar
  • 640
6 votes
2 answers
987 views

Autovacuum is not running on Openshift Online Postgres cartridge

I have Postgres 9.2 on my Openshift Online cartridge. Using Pgadmin3, I have enabled (by ticking the box) the autovuum setting for postgresql.conf. However, the autovacuum does not seem to be ...
green's user avatar
  • 226
6 votes
2 answers
1k views

OpenShif jenkins: java.net.BindException: Permission denied

I have setup Jenkins on openshift, made a hello world project and trying to package it by the Jenkins in openshift. But I got the next error: Commencing build of Revision ...
Anton Balashov's user avatar
6 votes
3 answers
5k views

HTTP Status 500 - java.lang.NoClassDefFoundError: java/time/temporal/TemporalField when run app on OpenShift

I'm learning about RESTFUL Webservice, i'm building a simply app on free host of OpenShift my server and db on OpenShift : jbossews-2.0 (Tomcat 7); postgresql-9.2 This is my Java build path This is ...
TearsRiver's user avatar
6 votes
3 answers
2k views

Testing spring openshift application locally

I have an application running on Openshift. It works fine, but testing is difficult because i have to push every little thing to openshift and wait for all the building and restarting to see the ...
lunr's user avatar
  • 5,229
6 votes
2 answers
3k views

openshift 3.11 install fails - Unable to update cni config: No networks found in /etc/cni/net.d",

I'm trying to install Openshift 3.11 on a one master, one worker node setup. The installation fails, and I can see in journalctl -r: 2730 kubelet.go:2101] Container runtime network not ready: ...
Magick's user avatar
  • 4,786
6 votes
1 answer
103 views

How can I perform application/server configuration changes withouth image rebuild on OPENSHIFT?

I have an infrastructure with Openshift (containers) Jenkins (build and deploy jobs) Nexus (here I store WAR and JAR files) and GIT (groovy/yaml files). Imaging I create an image with Tomcat APP ...
Alexander Meise's user avatar
6 votes
1 answer
1k views

Jersey JAX-RS REST 404 in Openshift, working well in local Tomcat

I am pretty new to Jersey REST. I follow the tutorial http://javapapers.com/java/restful-web-services-with-java-jax-rs-using-jersey/. It works well locally on Tomcat 7. But when I deploy it into ...
He Zhang's user avatar
  • 137
6 votes
1 answer
808 views

Adding a background process (celery) to a scaling app on OpenShift

I am developing a scaling app for RH Openshift. I plan to use three gears for the following purposes: 1) HAProxy and web cartridge 2) MySQL 5.1 database 3) Background process (Celery) I have already ...
Max Ferguson's user avatar

1
3 4
5
6 7
159