All Questions
Tagged with openshift openshift-3
189
questions
10
votes
1
answer
12k
views
Configure multiple paths for an Openshift Route
I'd like to define in Openshift one route with multiple paths, each path forwarding to a different service. For example /pathA would forward requests to ServiceA , whilst /pathB would forward requests ...
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 ...
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 ...
5
votes
3
answers
11k
views
How can I mount a file with the contents of key/value of a ConfigMap without clearing the folder?
I created a deploymentconfig.yml to deploy an app and a want to mount a file which contents are stored in a ConfigMap.
When mounting, the files in the folder that is mounted are replaced.
The goal ...
5
votes
2
answers
6k
views
Connect to openshift 3 mongodb from remote?
How do I connect to my Openshift 3 MongoDB with https://mongobooster.com/ from my local mac? The credentials from the pod do not work.
Pod: nodejs-mongo-persistent-1-rt6ch
Connected to MongoDB at: ...
4
votes
1
answer
830
views
Openshift 3 FREE- custom domain
I am trying to migrate my app from Openshift 2 FREE to Openshift 3 FREE. I've managed to do everything, but the custom domain. In OpenShift it was very easy - add an alias to the app + modify some ...
4
votes
2
answers
2k
views
Deploy Spring Microservices on Openshift
I need to deploy a few microservices on the Openshift. These microservices are implemented using Spring Cloud. I use Spring Eureka for service discovery/load-balancing && Spring Zuul for ...
4
votes
2
answers
10k
views
Openshift container as root user
Hi Iam working on CICD implementation on openshift 3.9. I have a jenkins pod running in openshift. Iam running selenium scripts in jenkins and below is the error which iam getting like missing a ...
3
votes
3
answers
7k
views
How to open a Web Console for open shift?
guys I am using OpenShift to conatinerize and run application on kubernetes, I have started the open shift cluster using oc cluster up now how do I open in the web console.
For the mini shift I have ...
3
votes
1
answer
7k
views
Angular Cli Deployment on openshift 3
I'm trying to deploy angular cli project to openshift 3. It continuously failing the build with "Generic Build failure", no farther info on log. Can any one please walk me through the process if I'm ...
3
votes
2
answers
2k
views
OpenShift Online Next Gen "Unable to mount volumes for pod"
I'm trying to use a regular EBS persistent storage volume in OpenShift Online Next Gen, and getting the following error when attempting to deploy:
Unable to mount volumes for pod "production-5-...
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
6k
views
Openshift 3 App Deployment Failed: Took longer than 600 seconds to become ready
I have a problem with my openshift 3 setup, based on Node.js + MongoDB (Persistent) https://github.com/openshift/nodejs-ex.git
Latest App Deployment: nodejs-mongo-persistent-7: Failed
--> Scaling ...
3
votes
1
answer
2k
views
Why is Openshift reporting a far greater container memory usage than the same Docker container running locally?
I have a Docker container that reports this resource usage when running locally:
docker run -i --rm -p 8080:8080 my-application
As you can see the container uses 10.6MiB:
docker ps -q | xargs ...
3
votes
1
answer
3k
views
How to get information on latest successful pod deployment in OpenShift 3.6
I am currently working on making a CICD script to deploy a complex environment into another environment. We have multiple technology involved and I currently want to optimize this script because it's ...
3
votes
1
answer
3k
views
openshift 3.11 oc command : error: Error loading config file ".kube/config": yaml: line 11: could not find expected ':'
In a okd cluster installed using https://github.com/openshift/origin/tree/release-3.11
After the okd installation the oc command was working fine but after somedays, I'm facing a weird issue with oc ...
3
votes
0
answers
3k
views
Unable to redeploy the certificates post-expiry in openshift 3.11
I have deployed openshift(okd) 3.11 using : https://github.com/openshift/openshift-ansible/tree/release-3.11
I would want to produce a scenario where certificates expire and test how the renewal ...
3
votes
0
answers
2k
views
jenkins pipeline error during build image with build war in openshift
We are implementing CICD pipeline in openshift 3.9. At a stage where I'm building a jboss image with war, I am getting an error. The pipeline is getting failed at the BUILD IMAGE WITH APP stage. It is ...
3
votes
1
answer
4k
views
How to map requests to multiple ports in a pod in Openshift v3?
I have a web app that does http and ws requests. I am trying to deploy it to Openshift v3. Hence, I need my requests to be mapped to ports 80 and 90 in the pod. However:
As mentioned in a related ...
3
votes
1
answer
158
views
Deploying MYSQL stuck in pending
Been trying to deploy an mysql in openshift 3 online.
And i get the following error. Any idea what's wrong with it?
2
votes
1
answer
4k
views
How do I stop an existing open shift Port Forward
With oc, I can portward a pod in open shift to get local access.
oc get pods
oc port-forward MY-POD-NAME 5555:5555
How do I stop it after I start it?
I've searched through
oc port-forward --help
...
2
votes
2
answers
9k
views
Increase memory limit of a running pod
I have a pod running in openshift 3.11, I wish to increase the pod memory limit from 2GB to 4GB. How to do it via Openshift Web Console or via OC command line?
When I try to edit the yaml file in ...
2
votes
2
answers
4k
views
openshift: allow serviceaccount to create project
i created a service account for gitlab oc create serviceaccount gitlab-sa
i assigned to this service account an edit role for the project and for the cluster
oc policy add-role-to-user edit -z ...
2
votes
1
answer
992
views
Where is data directory in OpenShift 3?
Where data are stored which need a web service in OpenShift 3? Anyway how can I browser file system?
2
votes
1
answer
1k
views
How to read a file on a remote server from openshift
I have an app (java, Spring boot) that runs in a container in openshift. The application needs to go to a third-party server to read the logs of another application. How can this be done? Can I mount ...
2
votes
1
answer
919
views
DeploymentConfig replicas and Horizontal Pod Auto scaler
On Openshift 4, I did setup HPA(horizontal pod autoscaler) with min pods as 3, which guarantees that at least three pods up and running all the time.
When I set replicas to zero in Deployment Config, ...
2
votes
2
answers
898
views
Openshift CLI: Change .kube folder to different drive
I have Openshift CLI 3.11 installed on my machine, but my .kube folder is present on my H drive(network drive) which is not accessible due to some network problems as I'm away from my office and ...
2
votes
2
answers
2k
views
How to run a job in openshift to schedule a particular script?
I have an existing POD containing a DB. I have a script containing executable queries in that container. I need to schedule the execution of the script. How do I go about doing this?
2
votes
1
answer
297
views
Openshift 3.11: controller-manager crashloopbackoff - unable to retrieve the complete list of server APIs: servicecatalog.k8s.io/v1beta
I have a issue with my controller-manager and hours of debugging been not successful.
Log:
"controller_manager.go:232] error running controllers: failed to get api versions from server: failed to ...
2
votes
1
answer
2k
views
How to auto restart OpenShift deployment on a weekly/daily basis?
I'm having a flask app that fetches data from external source only at application startup.
I need to refresh app data, and the easiest way (without changing app logic) would be to daily restart ...
2
votes
0
answers
418
views
Binary build in OpenShift does not work but locally works
I have the following situation. I created a build in OpenShift:
oc new-build --strategy docker --binary --docker-image centos:centos7 --name myapp
And locally there is nothing fancy. I have a .war ...
2
votes
0
answers
1k
views
kube-service-catalog pods are in "CrashLoopBackOff" state when internet is disabled
Am trying to install opensource version of openshift origin i.e. OKD v3.11 without internet using ansible.
During the complete installation process my internet is disabled on the environment. After ...
2
votes
1
answer
647
views
openshift: mount directory is not getting populated with initial data from container
My openshift template with pv,pvc and deployment config is as follows:
kind: Template
apiVersion: v1
metadata:
name: okd-static-server.
labels:
template: okd-static-server
objects:
- apiVersion: ...
2
votes
1
answer
368
views
Adding external private jar to Openshift Application
I want to deploy a Java & Maven micro services application on OpenShift however I have one small issue. These micro services are dependent on a commons project
containing some common components.
...
2
votes
2
answers
416
views
Openshift 3 Starter failed to push image
I tried to previously successfully built projects and both got the same error message:
error: build error: Failed to push image: Get
https://docker-registry.default.svc:5000/v1/_ping: x509: ...
2
votes
1
answer
229
views
How to deploy/push to openshift 3?
I am trying to migrate my openshift-2 experiment to openshift-3 free.
I am actually stuck with a very simple question?
How do I push/deploy my sourcecode? I cannot find the openshift-3 git path in ...
2
votes
1
answer
299
views
OpenShift 3 Java Mongodb
I am using openshift 3 with mongodb. I am using Spring data with mongodb.
But I can not connect to mongodb on Openshift.
I am using such code :
MongoCredential credential = MongoCredential....
2
votes
2
answers
181
views
Error when running the ruby / rails build in open shift 3
Error when running the ruby / rails build in open shift 3.
I used my project on openshift 2 and it worked. Try cooloca on openshift 3 and this error happened.
I used the test project and it also ...
1
vote
1
answer
4k
views
OpenShift deploy an application from private registry by using "oc new pp" command
In OpenShift, I want to deploy application by using docker image which its location is on the private docker registry. To do this I have written the following command from terminal by using OpenShift ...
1
vote
2
answers
5k
views
OKD 3.11 Installation failed "Control plane pods didn't come up" "network plugin is not ready: cni config uninitialized"
OKD 3.11 Installation failed "Control plane pods didn't come up"
Environment
CentOS Linux release 7.6.1810 (Core)
ansible 2.6.16
OKD 3.11
Docker version 1.13.1, build b2f74b2/1.13.1
Ansible ...
1
vote
2
answers
1k
views
How the okd/openshift cluster can be used by multiple users simultaneously?
Problem Scenario:
OKD cluster is having two cluster-admins: User1 and User2.
If User1 connects to cluster using ssh and performs oc login and parallely User2 connects to the same cluster with new ssh ...
1
vote
1
answer
5k
views
How to give a container root permission (serviceaccount) before starting the build
Openshift does not allow to run containers as root, but you can do this by creating a service account:
oc adm policy add-scc-to-user anyuid -z useroot
and then patching the deployment configuration, ...
1
vote
1
answer
1k
views
Can't run " oc rsh POD mysqldump foo" on openshift v3
I have installed oc and login openshift on my linux pc.
When i running
oc rsh mysql-55-centos7-1-1aa3 ls -al /tmp/
total 72428
drwxrwxrwt. 1 root root 35 Oct 30 00:38 .
drwxr-xr-x. 1 ...
1
vote
1
answer
685
views
How to get Kubernetes Version as integer from API
I am trying to get the current Kubernetes version via the API, because depending on the version some things are not supported (e.g. readyz endpoint is not available before 1.16, so I want to check ...
1
vote
1
answer
466
views
How to write jenkinsfile that will access openshift and run few commands
I am new to Jenkins, can someone help me to write Jenkinsfile that access openshift run few of commands, and return the report
I know commands to run manually in open shift but don't know how to do ...
1
vote
1
answer
221
views
How to create a non-administrator user in openshift 3.11?
In OCP 3.11 (OKD), how can we create a non admin user? Are there any specific commands for it?
1
vote
1
answer
3k
views
Openshift cron job curl
I have Java Rest application on Openshift. I need to create cron for link in my application. Is it possible?
I tried this example
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: pi
spec:
...
1
vote
1
answer
2k
views
Export contents of the Openshift image to a file
I've been searching for this for a while. I don't have access to the binary items used to build the image because an artifactory migration ruined the repo. There is one particularly precious binary I ...
1
vote
1
answer
51
views
Openshift v2 migration to Openshift V3
We had our platform hosted on Openshift v2 however due to budget and human resource constraints we were never able to migrate to Openshift v3. We now have the budget and resources in place, however, ...