Questions tagged [openshift]
OpenShift is a commercial enterprise-ready container platform built on top of Kubernetes which allows you to run containerized applications
7,918
questions
378
votes
10
answers
794k
views
Using env variable in Spring Boot's application.properties
We are working on a Spring Boot web application, and the database we are using is MySQL;
the setup we have is we first test it locally (means we need to install MySQL on our PC);
then we push to ...
227
votes
14
answers
300k
views
How can I debug "ImagePullBackOff"?
All of a sudden, I cannot deploy some images which could be deployed before. I got the following pod status:
[root@webdev2 origin]# oc get pods
NAME READY STATUS ...
158
votes
7
answers
44k
views
rhc setup gives error `no such file dl/import`
I'm installing openshift client tools as described: https://developers.openshift.com/en/getting-started-windows.html#client-tools.
On step 'Setting up Your Machine' I got error:
rhc setup
C:/...
146
votes
11
answers
73k
views
What is the difference between persistent volume (PV) and persistent volume claim (PVC) in simple terms?
What is the difference between persistent volume (PV) and persistent volume claim (PVC) in Kubernetes/ Openshift by referring to documentation?
What is the difference between both in simple terms?
104
votes
11
answers
55k
views
Can I use my existing git repo with openshift?
Is it necessary to have git repo on openshift only? I already have bitbucket / github git repo and would prefer to push there only. Can I simply hook into it so that openshift gets intimation ?
Or ...
94
votes
7
answers
28k
views
OpenShift rhc setup using multiple accounts
I have two accounts on Openshift platform. How can I setup my computer so that I can manage both of them with rhc? I cannot find any relevant option in the command line arguments.
78
votes
7
answers
69k
views
How does docker compare to openshift?
Docker and OpenShift are both frameworks to implement a PaaS service.
How do they compare in architecture and features?
67
votes
22
answers
359k
views
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
I download from https://github.com/luciddreamz/laravel Laravel for openshift
then upload over my repository over github. This code for connect to database not work.
The problem is that load variable ...
54
votes
9
answers
97k
views
Using Keycloak behind a reverse proxy: Could not open Admin loginpage because mixed Content
so I have a problem getting keycloak 3.2.1 to work behind kong (0.10.3), a reverse proxy based on nginx.
Scenario is:
I call keycloak via my gateway-route via https://{gateway}/auth and it shows me ...
54
votes
2
answers
18k
views
What does "#!/bin/env" mean (at the top of a node.js script)?
I found serval node.js projects that have this at top of their app.js (as in this openshift program):
#!/bin/env node
What does this mean? How does this work? Where is it useful?
54
votes
1
answer
75k
views
HTTPS request in NodeJS
I am trying to write a NodeJS app which will talk to the OpenShift REST API using the request method in the https package. Here is the code:
var https = require('https');
var options = {
host: '...
53
votes
10
answers
69k
views
Wordpress JsonAPI - /wp-json/ was not found on this server
I am using the following plugin Json Rest API.
To test the plugin the documentation states that I should just use:
$ curl -i http://testpress-maxximus.rhcloud.com/wp-json/
HTTP/1.1 404 Not Found
...
47
votes
8
answers
90k
views
Helm: could not find tiller
I'm getting this error message:
➜ ~ helm version
Error: could not find tiller
I've created tiller project:
➜ ~ oc new-project tiller
Now using project "tiller" on server "https://192.168.99.100:...
47
votes
1
answer
41k
views
Can I connect one service account to multiple namespaces in Kubernetes?
I have couple of namespaces - assume NS1 and NS2. I have serviceaccounts created in those - sa1 in NS1 and sa2 in NS2. I have created roles and rolebindings for sa1 to do stuff within NS1 and sa2 ...
43
votes
2
answers
29k
views
What is the different between openshift deploymentconfig and kubernetes deployment
After far as I know:
deploymentconfig → replicationcontroller → pod
vs.
deployment → replicaset → pod
Otherwise, do these two resources have additional differences?
The more ...
42
votes
5
answers
44k
views
Separate back-end and front-end apps on same domain?
We are building a fully RESTful back-end with the Play Framework. We are also building a separate web front-end with a different technology stack that will call the RESTful API.
How do we deploy both ...
39
votes
4
answers
15k
views
How to use naked GoDaddy domain with OpenShift hosting? [closed]
Desired Behaviour
I have a GoDaddy domain name and am using OpenShift for hosting.
I would like the following to be true:
a) user enters www.mysitename.com > user sees mysitename.com
b) user ...
37
votes
14
answers
159k
views
Permission denied (publickey,gssapi-keyex,gssapi-with-mic) on openshift
I am having issues with committing changes to my gear. I have tried to run rhc setup, I also deleted my .ssh folder and executed rhc setup again but that also didnt work.
Not sure what changed but ...
35
votes
30
answers
122k
views
django.core.exceptions.ImproperlyConfigured: WSGI application 'application' could not be loaded
The scenario is,
I cloned the Django code for OpenShift-V3 from here . When I ran the code with python manage.py runserver, I got this error:
django.core.exceptions.ImproperlyConfigured: WSGI ...
32
votes
1
answer
16k
views
Deploying Ruby on Rails - Is there a good alternative for Heroku? [closed]
I'm starting a new small venture, a POC if you would like, and I want to deploy my Rails application for free somewhere.
I found that there is Heroku, are there another options?
32
votes
2
answers
89k
views
How to include script and run it into kubernetes yaml?
It is how to run simple batch in kubernetes yaml (helloworld.yaml):
...
image: "ubuntu:14.04"
command: ["/bin/echo", "hello", "world"]
...
In Kubernetes i can deploy that like this:
$ kubectl ...
31
votes
7
answers
117k
views
How to restart pod in OpenShift?
I updated a file (for debug output) in a running pod, but it isn't getting recognized. I was going to restart the pod to get it to take but I only see oc stop and not oc start or oc restart. How would ...
31
votes
3
answers
39k
views
Share persistent volume claims amongst containers in Kubernetes/OpenShift
This may be a dumb question but I haven't found much online and want to clarify this.
Given two deployments A and B, both with different container images:
They're deployed in two different pods(...
30
votes
8
answers
54k
views
Openshift Nginx permission problem [nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)]
I am currently running into a problem trying to set up nginx:alpine in Openshift.
My build runs just fine but I am not able to deploy with permission being denied with the following error
2019/01/25 ...
28
votes
5
answers
32k
views
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.security.selinux'
I am installing Openshift Origin All-in-One Server using below links
https://docs.openshift.org/latest/getting_started/administrators.html#downloading-the-binary
after download when I did:
tar -xf ...
27
votes
5
answers
18k
views
Looking for PaaS providers recommendations [closed]
I want to develop our new project using a PaaS provider. I'll be developing primary in PHP, but would like that the service can provide other languages too (and add-ons available too, like MongoDB, ...
27
votes
5
answers
39k
views
Openshift: How to remote access MySQL?
So I just finished setting up a JBoss application server gear on Openshift and I attached a MySQL and phpmyadmin cartridges. My question is if there is a way to remote access to the database server ...
27
votes
3
answers
38k
views
Kubernetes ConfigMap size limitation
Though resourceQuotas may limit the number of configmaps in a namespace, is there any such option to limit the size of the individual configmap?
I will not like some user to start uploading large text ...
25
votes
4
answers
25k
views
Difference between API versions v2beta1 and v2beta2 in Horizontal Pod Autoscaler?
The Kubernetes Horizontal Pod Autoscaler walkthrough in https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/ explains that we can perform autoscaling on custom ...
25
votes
2
answers
13k
views
what's the difference between openshift route and k8s ingress?
I'm new to openshift and k8s. I'm not sure what's the difference between these two terms, openshift route vs k8s ingress ?
25
votes
2
answers
55k
views
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 ...
24
votes
4
answers
51k
views
What is a good way to deploy secret Java key stores in an OpenShift environment?
We have a Java web application that is supposed to be moved from a regular deployment model (install on a server) into an OpenShift environment (deployment as docker container). Currently this ...
24
votes
4
answers
13k
views
Deploying a local django app using openshift
I've built a webapp using django. In order to host it I'm trying to use openshift but am having difficulty in getting anything working. There seems to be a lack of step by steps for this. So far I ...
24
votes
3
answers
8k
views
What is the benefit of putting multiple containers in a pod?
What's the benefit of having multiple containers in a pod versus having standalone containers?
24
votes
1
answer
10k
views
How to configure Django on OpenShift? [closed]
I recently tried to export a Django project on OpenShift, but fruitlessly. The only solutions I found were "prebuilt" ones (such as https://github.com/openshift/django-example).
I spent some hours ...
23
votes
6
answers
33k
views
What server URL should be used for the `oc login` command when using OpenShift's PaaS?
What do I provide for the server URL in the oc login tool, when using the OpenShift PaaS?
I'm trying to migrate my OpenShift Online v2 app to v3, following the instructions for PHP apps linked to ...
22
votes
2
answers
27k
views
What is the "kube-system" namespace for?
In a default openshift install, there is an unused project titled kube-system. It seems like openshift-infra is for things like metrics, default is for the router and registry, and openshift is for ...
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 ...
21
votes
1
answer
15k
views
OpenShift: How to connect to postgresql from my PC
I have an openshift app, and I just installed a postgresql DB on the same cartridge.
I have the postgresql DB installed but now I want to connect to the DB from my PC so I can start creating new ...
20
votes
1
answer
12k
views
Openshift v3 - update image stream to fetch changes from external docker registry
I'm seeming to run into a simple problem and have the feeling I'm missing something essential.
I'm having a private docker image registry at our company, which hosts all the docker images we develop.
...
19
votes
5
answers
12k
views
JDK 8 support at DIY cartridge in OpenShift
I know WildFly cartridge doesn't have JDK support, but can I somehow install Java 8 at experimental DIY cartridge? java-1.7.0 is the latest version available at /usr/lib .
19
votes
9
answers
13k
views
Application 'appname' failed to start (port 8080 not available) on open shift node app
I have written a node restify server in coffee and I can't seem to get it running.
While deploying I get the following error:
Waiting for application port (8080) become available ...
after which ...
19
votes
2
answers
22k
views
OpenShift Origin vs OpenShift Enterprise
I'm searching for a main difference between OpenShift Origin and OpenShift Enterprise. I know that the first is open source and the latter is the commercial version. Have OpenShift Enterprise got ...
19
votes
5
answers
39k
views
permission denied, mkdir in container on openshift
I have a container with nodejs and pm2 as start command and on OpenShift i get this error on startup:
Error: EACCES: permission denied, mkdir '/.pm2'
I tried same image on a Marathon hoster and it ...
19
votes
6
answers
14k
views
How to obtain the enable admission controller list in kubernetes?
AFAIK, the admission controller is the last pass before the submission to the database.
However I cannot know which one is enabled, Is there a way to know which one is taking effect?
Thanks.
19
votes
1
answer
10k
views
How to test an openshift application on local host
I recently start playing with Openshift and I am wondering if there is a way to deploy ( test) your application on local host before you upload it on openshift.
Thing is that every time I make change ...
18
votes
3
answers
24k
views
Cannot determine if job needs to be started: Too many missed start time (> 100). Set or decrease .spec.startingDeadlineSeconds or check clock skew
I've created and pushed a cron job to deployment, but when I see it running in OpenShift, I get the following error message:
Cannot determine if job needs to be started: Too many missed start time (&...
17
votes
5
answers
6k
views
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 ...
17
votes
3
answers
17k
views
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 ...