All Questions
Tagged with openshift openshift-origin
465
questions
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 ...
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 ...
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 ...
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 ...
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 ?
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 ...
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 ...
15
votes
2
answers
23k
views
How to delete or overwrite a secret in OpenShift?
I'm trying to create a secret on OpenShift v3.3.0 using:
oc create secret generic my-secret --from-file=application-cloud.properties=src/main/resources/application-cloud.properties -n my-project
...
12
votes
3
answers
29k
views
Environment variable in PHP-docker container
I want to show an env var in my docker container.
The PHP script looks like this:
<html>
<head>
<title>Show Use of environment variables</title>
</head>
<body>...
10
votes
3
answers
41k
views
chown: changing ownership of '/var/lib/mysql/': Operation not permitted
I am trying to deploy a mariadb image on openshift origin. I am using mariadb:10.2.12 in my docker file. It works ok on local but I get following error when I try to deploy on openshift origin.
...
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 ...
9
votes
3
answers
10k
views
How to get access-logs from OpenShift router (HAProxy)?
How to get access-logs from openshift router (HAproxy).
I tried to use this command:
$ oc project default
$ oc logs router-1-g...
I got output:
I0129 09:47:17.125616 1 router.go:554] Router ...
9
votes
4
answers
19k
views
Openshift: Unresolved Image
i'm stuck with Openshift (Origin) and need some help.
Let's say i want to add a grafana deployment via CLI to a new started cluster.
What i do:
Upload a template to my openshift cluster (oc create -f ...
9
votes
5
answers
7k
views
How to make oc cluster up persistent?
I'm using "oc cluster up" to start my Openshift Origin environment. I can see, however, that once I shutdown the cluster my projects aren't persisted at restart. Is there a way to make them persistent ...
9
votes
2
answers
8k
views
Running a docker image in Openshift Origin
I am very new to Openshift Origin. I am now trying out the possibility of deploying my docker containers in OpenShift origin.
For that I created a very simple docker container that adds two numbers ...
8
votes
2
answers
13k
views
Validate OpenShift objects defined in yaml before actually applying or executing it
I have a OpenShift template in template.yaml file which includes following objects - deployment-config, pod, service and route. I am using the following command to execute the yaml:
oc process -f ...
8
votes
3
answers
4k
views
NGINX in Openshift - NGINX can't resolve internal hostnames
When using a variable to rewrite & proxy to an internal Openshift service within an nginx container's proxy_pass config, NGINX can't resolve the service's DNS due to a required resolver. For ...
7
votes
1
answer
7k
views
OC command to view the tag information
I would like to know the tag applied to all the images in a namespace. Is there any oc command to view tags in a namespace?
Before posting this question, i googled. However i didn't find any. So I ...
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 ...
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 ...
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-...
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:
....
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
...
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:...
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 ...
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 /...
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: ...
6
votes
3
answers
10k
views
Openshift new-app from local Docker image
I'm trying to deploy on an Openshift Origin Pod an image which is available in my Docker repository:
$ docker images
REPOSITORY TAG IMAGE ID ...
5
votes
1
answer
10k
views
How to allow image pull from one project to another in openshift?
I have created one project testing1 in which i published docker images.
Now, i want to created similar another project testing2 with same images that i pushed in testing1. I don’t want to publish ...
5
votes
4
answers
2k
views
OpenShift 3.1 - Prevent Docker from caching curl resource
I have this curl command in my Dockerfile:
RUN curl -H 'Cache-Control: no-cache' -f ${NEXUS_URL}${ARTIFACT_PATH}-${ARTIFACT_VERSION}.war?nocache=true -o $JBOSS_HOME/standalone/deployments/ROOT.war
...
5
votes
1
answer
1k
views
Do Openshift Origin jobs need hard-coded internal registry URLs for images?
I can't figure a namespace-portable way to build an image into an imagestream that can then be used for a job in an OpenShift project namespace without hard-coding the internal registry URL in the job ...
5
votes
0
answers
2k
views
Unable to deploy mongodb community operator in openshift
I'm trying to deploy the mongodb community operator in openshift 3.11, using the following commands:
git clone https://github.com/mongodb/mongodb-kubernetes-operator.git
cd mongodb-kubernetes-operator ...
4
votes
3
answers
9k
views
How does one restart Openshift Origin master on Centos 7?
Openshift origin was installed via the ansible playbooks.
According to this documentation, the correct command to restart is:
$ systemctl restart atomic-openshift-master-api atomic-openshift-master-...
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
1
answer
5k
views
Openshift oc params-file format
I want to provide a different set of parameters to an openshift template depending on the specific deployment. I have been using
oc new-app -f my-template.yml -p P1="p1-override-value" -p P2="p2-...
4
votes
2
answers
8k
views
Change Deployment config from shell
I need to vary the deployment config of an application, by adding an extra YAML section within it (in the example the section name: ping and its two attributes)
containers:
- name: openshift-wf-...
4
votes
2
answers
3k
views
Openshift: Automatically update upstream images
In Openshift we have a BuildConfig which depends on an image from hub.docker.com (ubuntu:xenial).
strategy:
type: Docker
dockerStrategy:
from:
kind: ImageStreamTag
namespace: <...
4
votes
3
answers
1k
views
Openshift: how to edit scc non-interactively?
I am experimenting with openshift/minishift, I find myself having to run:
oc edit scc privileged
and add:
- system:serviceaccount:default:router
So I can expose the pods. Is there a way to do it ...
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
3
answers
678
views
Openshift - API to get ARTIFACT_URL parameter of a pod or the version of its deployed app
What I want to do is to make a web app that lists in one single view the version of every application deployed in our Openshift (a fast view of versions). At this moment, the only way I have seen to ...
4
votes
1
answer
2k
views
Accessing minishift from outside
I am testing gitlab integration with minishift and for the same i need the IP that will act as the IP for the external systems. Machine IP is not working.
Is there a way with which I can access ...
4
votes
2
answers
5k
views
oc cluster up timeout waiting for condition
I am trying to setup openshift origin on my local Virtualbox centos 7.4. This is a all-in-one environment for study purpose only. I followed the exact document:
https://docs.okd.io/latest/...
4
votes
0
answers
531
views
OpenShift Origin Nodes WIth Multiple Network Interfaces
Is it possible to configure OpenShift to use a separate interface on nodes+masters? For example, let's say I have a cluster where each machine has two network interfaces on different subnets (...
4
votes
1
answer
790
views
Can I generate incremental Build Name in an OpenShift Origin build?
I am building a image using a BuildConfig, in every build a new image with the tag latest is created because I am using this config
"output": {
"to": {
"kind": "ImageStreamTag"
"name": "...
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
2
answers
2k
views
Allow Docker strategy in Openshift 3
I'm trying to understand the new OpenShift system and now we have push images to it. I know a little about Docker and I wanted to use it. I read in some places that we can chose Docker as a strategy.
...
3
votes
2
answers
1k
views
Openshift: Jenkins in a separate project
I read and watched many tutorials about using Jenkins in Openshift. In all these tutorials the application has been deployed inside the same project with Jenkins.
Is it possible in Openshift to have ...
3
votes
4
answers
8k
views
How to get kubernetes service account access token using fabric8 java client?
I have configured minikube in my local machine and going to use kubernetes externally. I have created a Service Account in kubernetes and using it's secret I can get the access token using below ...
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
3
answers
2k
views
Why Openshift adds cache-control private?
My flask python service on Openshift Origin is adding a Cache-Control: private.
My cache server does not make cache because this.
How can I remove this from service?
I Have added this configuration ...