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.

prestashop: Database Server is not found. Please verify the login, password and server fields (DbPDO)

I have 2 gears in OpenShift configured as follows: application gear, scalable, running PHP 5.3 database gear, non scalable, running MySQL Database 5.1 and phpMyAdmin I am running PrestaShop's...

CORS with socket.io

I'm having trouble with CORS on a node.js app using express.io. I'm hosting the socket.io client js remotely since this needs to works as a remote app. <script...

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...

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...

Pushing changes to OpenShift

I'm following the tutorial below to push a change to my OpenShift application. $ git clone <git_url> <directory_to_create> # Within your project directory # Commit your changes and push to...

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: [[email protected] origin]# oc get pods NAME READY STATUS ...

start request repeated too quickly

I'm writing a bash-script but I often face this issue. When I try to start or stop a service I often get: start request repeated too quickly How can I solve this problem? It's for example when...

Enabling Cross Origin Requests for WebSockets in Spring

I have a OpenShift Wildfly server. I am building a website with the Spring MVC framework. One of my webpages also uses a WebSocket connection. On the server side, I have used the @ServerEndpoint...

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?

Force restart of a pod inside OpenShift

Can I use OpenShift Client oc for forcing restart of a pod. I'd like to see e.g. what details in oc describe $pod change, and in particular whether hostname as displayed inside the pod...

Openshift route via Apache

How do we expose Openshift HTTP/S routes via Apache web server? I tried via proxypass however from logs, looks like apache is trying to reach openshift route via IP address of node and openshift...

OpenShift :: POD is not inheriting "name label" from the deployment config

I created a build config from the git repo (Docker based app). oc new-build <git-url> --name=myApp Created a deployment config using: oc create dc myApp --image=<image-stream-repo> I am adding...

Alt+Enter stopped working for Dart files in IntelliJ

When building Flutter apps the ALT + Enter keyboard shortcut is very convenient not only to bring up Quick Fixes but also to bring up a popup menu to wrap/remove Widgets. It was working fine until...

CORS : Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request

I am trying to integrate the angualar js app with the backend spring boot , in which i am facing the redirection is not allowed for a preflight request This is deployed on openshift , i have...

Gunicorn is failing with OSError: [Errno 107] Transport endpoint is not connected

I was facing this issue while running my application [Docker Image] with the gunicorn version 19.9.0 in Openshift. I'm not using the nginx to set...

WebServer (Apache HTTP/IBM IHS) "Proxy and Reverse Proxy" -> Forward traffic to -> services (hosted on openshift as passthrough)

I am trying to forward the request from IBM IHS (8.5)/Apache to service hosted on openshift as passthrough using proxy/reverse proxy feature of apache. While doing this I am getting error "503...

Openshift 4.2 - Unable to connect to the server: x509: certificate has expired or is not yet valid

I tried to create a cluster in Openshift 4.2 (RHCOS) environment. I have own local DNS server and HA proxy server. I created 3 master and 2 worker nodes in VMware Environment as per the...

Cypress (Electron) error on OpenShift "Failed to get 'appData' path" during End-to-end tests

I tried to run cypress end-to-end tests in OpenShift. Locally it works, but in OpenShift occurs an error after starting the tests via the cypress run command. Error message in OpenShift >...

add auth or dissable /metrics endpoint for prometheus client

I am using Prometheus on OpenShift platform. Authentication is handled by OpenShift for Prometheus and all its sub domains except /metrics endpoint. It bypasses all authentication and shows...

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...

Ansible K8s module: Failed to import the required Python library (openshift) on Python /usr/bin/python3

The env Ansible 2.9.6 (python3) Tried to run a simple playbook - hosts: master gather_facts: no become: yes tasks: - name: create name space k8s: name: testing ...

Redisson client exception Netty threads

I have my application deployed in openshift and also it uses Redis. White it works most of the time , I still face issue related to redisson which is intermittent. The error trace is as below...

Error 400 when trying to reset user password on Red Hat SSO 7.3 (Keycloak) with Java API

I'm trying to create a user with a temporary password on Red Hat Single Sign On 7.3 (Keycloak behind the scene) through Java API. Locally (with standard Keycloak, jboss/keycloak:9.0.0 Docker...

Is it possible to maintain a Kerberos token across Kubernetes containers?

We have got a multi container pod with one sidecar container having a script to prepare the TGT cache(/dev/shm/ccache) using keytab and principal. The location /dev/shm/ has been mounted on host...

Nifi image Not Running over openshift

While trying to run docker image of apache nifi present in the docker hub in the open shift, it is giving me the permission issue as the docker image was running the user nifi which is not allowed...

Unable to put Vault UI in https

I try to run Vault with a CRC OpenShift 4.7 and helm3 but I've some problems when I try to enable the UI in https. Add hashicorp repo : helm repo add hashicorp...

Docker-Container Console Encoding in IntelliJ

my Problem is the follows: I'm trying to achive, that the Console ion IntelliJ for Docker-Container uses the Right Encoding. Right now it looks as follows: While in Docker itself it looks like...

Attempting to install to be continuous with OpenShift 4 and self-managed GitLab

Following the instructions from here, I'm attempting to get to-be-continuous up and running. I've created the empty to-be-continuous root group and the Maintainer non-individual GitLab account,...

Deploy microservice (spring boot app) on Openshift via Jenkins pipeline

I need to deploy a spring boot app (docker image) in openshift via jenkins, to achieve this I am doing the below steps, I created the docker image of spring boot app using the jenkins pipeline...