All Questions
225
questions
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 ...
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
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?
10
votes
2
answers
3k
views
How can I auto-deploy my git repo's submodules on push?
I have a PHP Cartridge that is operating normally, except I can't find a straightforward way to get OpenShift to (recursively) push the files for my git submodules when/after it pushes my core repo ...
9
votes
1
answer
15k
views
How do you remove the deploymentConfig, image streams, etc using Openshift OC?
After creating a new app using oc new-app location/nameofapp, many things are created: a deploymentConfig, an imagestream, a service, etc. I know you can run oc delete <label>. I would like to ...
7
votes
3
answers
22k
views
Retrieve secret value from openshift
I created a key/value secret in openshift. I want to retrieve the value of that key/value pair.
i tried using
oc describe secret ashish -n my-project
but it gave the value as shown below but i dont ...
7
votes
1
answer
3k
views
List pods that are servicing a service
I am trying to get the list of pods that are servicing a particular service
There are 3 pods associated with my service.
I tried to execute the below command
oc describe svc my-svc-1
I am expecting to ...
7
votes
2
answers
42k
views
Using a keystore with curl
I would like to execute the below curl command and specify my own key store.
I tried using --cacert option and specified the path of the cacert jks.
curl --ssl-reqd --url 'smtp://mailhost.myorg.com:...
6
votes
3
answers
3k
views
OpenShift and hostnetwork=true
I have deployed two POD-s with hostnetwork set to true. When the POD-s are deployed on same OpenShfit node then everything works fine since they can discover each other using node IP.
When the POD-s ...
5
votes
3
answers
4k
views
Add Custom Header to HTTP request in Load Balancer
I have an containerized application/service deployed in openshift container platform with istio service mesh. In istio virtual service yaml, i wanted to validate if the http request is having a header(...
5
votes
1
answer
686
views
Running RStudio Server on Openshift Online
Openshift Online does not allow containers running processes as root for security reasons (see the corresponding question in their FAQ section). RStudio Server, on the other hand, requires root ...
4
votes
2
answers
20k
views
Openshift - How to get current memory usage of POD List
I want to see current memory usage of PODs. I tried "oc get pods | grep elastic-*" to get POD details
elastic-index-5-kwz79 1/1 Running 0 ...
4
votes
2
answers
4k
views
Openshift route is not accepting traffic yet because it has not been admitted by a router
We have deployed a container from Apache HTTP Server (httpd) 2.4 template. After deployment successful, we are facing issue for assign route.
Error: The route is not accepting traffic yet because it ...
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
...
3
votes
3
answers
4k
views
Error setting up rhc (red hat client tools)
I've installed rhc following the instructions on the Openshift website. All seems fine when I run gem install rhc and hgem update rhc but when I try to call rhc I get the following message below. I've ...
3
votes
2
answers
2k
views
OpenShift Online v3+ - Adding new route gives forbidden error
I successfully installed on OpenShift Online (Starter Plan, US Virginia server) a Java Web Application (with MySQL Persistent service). The runtime is Tomcat. I managed to build the WAR from an ...
3
votes
1
answer
866
views
How long does OpenShift Starter account provisioning take?
For about a week now, it says:
Queued for provisioning
Due to an increase in OpenShift Online Starter popularity, please
expect a longer delay in account provisioning. You will receive an
...
3
votes
2
answers
2k
views
Where do I view my CronJob in OpenShift Container Platform?
This is a really basic question, that I just can't seem to find it ANYWHERE.
I need to create a CronJob on OpenShift Container Platform.
I wasn't able to find a page on the Container Platform on how ...
3
votes
1
answer
843
views
Redhat openshift - Cron Runtime - Is there a default time for how long cron executes
Cron on Redhat openshift is cancelled by SIGTERM after some minutes.
Is there a default timeout on how long cron tasks can execute?
If yes, how to get long running tasks working?
3
votes
2
answers
12k
views
start pod with root privilege on OpenShift
I have an image that requires root privilege to start.
Now I'm trying to deploy it on OpenShift.
this is the deployment yaml I used to deploy it
apiVersion: apps/v1
kind: Deployment
metadata:
name: ...
3
votes
1
answer
854
views
Upload file using PHP on OpenShift
I'm trying to upload an image using the following code:
index.php:
<form action="upload_photo.php" method="post" enctype="multipart/form-data">
<p>
Upload a new photo to the ...
3
votes
1
answer
1k
views
Airflow Openshift installation with Dockerfile
I tried to install the Airflow via my own image at a public dockerhub, but it works perfect locally, but when I tried to use it on Openshift. I got this error bellow.
`ERROR: Could not install ...
3
votes
0
answers
941
views
Keycloak WFLYCTL0362: Capabilities required by resource
I'm trying to run rh-sso-7/sso74-openshift-rhel8 container in Openshift and it says the following:
13:03:20,612 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities ...
3
votes
1
answer
224
views
OpenShift/Origin API call to initiate a deployment
Hi :) I'm trying to mimic the oc cli API call to the master node that initiates a deployment. So eventually, I can have a chatbot that can initiate a deployment without needing to install the oc cli.
...
2
votes
2
answers
3k
views
Clear log files on OpenShift - RedHat
Debugging my apps on OpenShift is becoming difficult due to excessive log data.
I'm using the terminal command rhc tail -a appname to view logs
Is there a way to clear the log files via a rhc ...
2
votes
1
answer
138
views
Is there any dependance with Red Hat using OpenShift
In my company, we are evaluating OpenShift as PaaS platform.
Beside the fact that Red Hat is a requirement to install OpenShift, is there any other dependance to Red Hat when deploying docker ...
2
votes
1
answer
1k
views
Best approach to integrate netty with openshift
In fact, I'm trying to see which would be the best approach to achieve play framework native support on openshift.
Play has it's own http server developed with netty. Right now you can deploy a play ...
2
votes
1
answer
1k
views
Openshift Nodejs Socket.io issue, But 200 Ok response
I have deployed below code in OpenShift Cloud platform by Red-hat for NodeJs chat application, I am not getting any error in Console(F12) and response code as Ok 200..but the application is not ...
2
votes
1
answer
458
views
Remove an Openshift server from RHC
I'm very confused about this rhc client. I always read about cartridge and apps on tutorials over the interwebs, but what I see when i try to setup rhc e a server.
I setup a server in this computer a ...
2
votes
1
answer
7k
views
Can I run oc commands in openshift pod terminals?
Is there any way that I can run the oc commands on pod terminals? What I am trying to do is let the user login using
oc login
Then run the command to get the token.
oc whoami -t
And then use that ...
2
votes
1
answer
1k
views
OC Rollout with specific tag name
I have created Tag Version using oc tag command in CLI, i have to deploy the image with recently created tag version.
Ex. oc tag <Source Service Name>:latest <Destination Service Name>:...
2
votes
1
answer
633
views
How can I get userinfo from the bearer token of RedHat Openshift?
I have configured the OAuth client on RedHat OpenShift so that I can do SSO for my application using the inbuilt OAuth server of the RedHat OpenShift cluster. I got redirected to OCP login page, ...
2
votes
1
answer
1k
views
OKD 4.5 single node installation
I'm trying to build an OKD 4.5 single node cluster following Craig Robinson blog post (at https://medium.com/swlh/guide-okd-4-5-single-node-cluster-832693cb752b). I faced with this issue first on ...
2
votes
1
answer
2k
views
In Openshift, how can I create a new build with an environment variable that's value is a secret using the CLI?
I have the following command.
oc new-build gen-dev/genbuilder:latest~ssh://[email protected]:7999/gen/pfs-converter.git#DEV1 \
--source-secret='privatekey' \
--name='testbuild' \
--env=KEY=VALUE
...
2
votes
1
answer
1k
views
npm run build redhat openshift deploy
I have a project built with node.js and react. Every time I build and and deploy, or every time the pod resets, I need to go in to the pod terminal and run 'npm run build' ("build": "react-scripts ...
2
votes
3
answers
426
views
openshift v3 online pro volume and memory limit issues
I am trying to run an sonatype/nexus3 on openshift online v3 pro. If I just use the web console to create a new app from image it assigns it only 512Mi and it dies with OOM. It did get created though ...
2
votes
1
answer
65
views
Openshift Online 3 Pro - Collaboration Option
I just purchased on OpenShift Online 3 pro account yesterday.
I want to share Web Console with another member of my team but it doesn't seem to be possible: all my teamates get a "You do not have ...
2
votes
1
answer
45
views
OpenShift Hub Creation vs Create New Application
I just created an OpenShift free account. When I logged in, I see there's a link called "Create new application". Also, there's an OpenShift Hub where you deploy.
What's the difference between "...
2
votes
0
answers
115
views
Setting NFS Path on java/spring-boot system
I want to show or download the following txt file on system developed in Java/Spring Boot:
The code that i am using to upload the files in the system on the nfs server is this:
public static String ...
2
votes
0
answers
689
views
Create Mutex throws Error The system cannot open the device or file specified
I have a dotnet WebApi application which is running on OpenShift (RHEL).
To build the application I am using source2image strategy with the RedHat Image.
https://catalog.redhat.com/software/containers/...
2
votes
0
answers
192
views
opm pruning all the version of the catalog from the image
I am pruning opm index with the custom catalog that i require but wheni do that i get all the versions of the image. How do i get only the latest image version and not all\
./opm index prune \
-f ...
2
votes
0
answers
130
views
How to create a dynamic storage class in OCP 3.11?
When I try to run a script for OCP 3.11 I get this error
At least one dynamic storage class must be available in order to proceed.
How can I create this dynamic storage class?
2
votes
1
answer
3k
views
Openshift 3.11 logging to external ElasticSearch instance
I have an external ElasticSearch instance that I'd like Fluentd and Kibana to leverage accordingly in OSE 3.11. The ES instance is insecure at the moment, as this is simply a internal pilot. Based ...
2
votes
0
answers
964
views
Why Docker images from Red Hat Container Catalog are not documented?
I am using keycloak image (jboss/keycloak) from DockerHub, for development environment, but I'am planning to go to Production with Red Hat SSO image from Red Hat Container Catalog (RHCC), for ...
2
votes
1
answer
638
views
Redhat subscription issue
Hi I am installation openshift 3.3 , 30 days trial version on RHEL 7.3, have registered the system using subscription-manager . I was able to attach pool id but suddenly its giving this "No available ...
2
votes
0
answers
704
views
How do I install xvfb and phantomjs on openshift (I'm getting permission denied error)
I'm logged in via SSH through my local ubuntu to this openshift machine.
I've cloned the repo in my local system, added a script, pushed the code and I can see in my openshift account.
However I ...
2
votes
0
answers
2k
views
RHC not working on OpenShift instance
I am just getting started with Node, so I created an instance on OpenShift and am trying to install rhc so that I can setup aliases for my domain name.
I ran the following and the installation was ...
2
votes
1
answer
76
views
run an OpenShift gear on-demand
I have a gear with JBoss Fuse and Apache Camel consuming a considerable amount of memory that needs to run a nightly task, i.e. it needs to be activated only at a specific time of the day, run its ...
2
votes
1
answer
859
views
ImageMagick library in CI on OpenShift RedHat not working
I have a codeigniter website and i cant get ImageMagick to work.
I have checked with phpinfo() and imagemagick is enabled on the server.
This is the config code for the library:
$image_conf = ...
2
votes
1
answer
3k
views
Error: error:060800C8:digital envelope routines:EVP_DigestInit_ex:disabled for FIPS
Facing this error while deploying a react app on openshift using Redhat ubi8-minimal base image.