Questions tagged [openshift]

OpenShift is Red Hat's distribution of Kubernetes for the enterprise. In terms of cloud service computing models, OpenShift implements the functionality of both a Platform as a Service (PaaS) and a Container as a Service (CaaS).

0
votes
0answers
6 views

Connection to an REST service which is outside of Openshift POD

One of the openshift pod in our environment is calling another service which is outside of the Openshift. for example, PoD 1 is using a service hosted on http://testmax.com/hello. But PoD 1 is not ...
0
votes
2answers
25 views

Unable to push docker image on registry using Jenkinsfile

I am trying to push my image through Jenkinsfile on repository but when I do that I am facing below error. Error response from daemon: Get https://mydockerregistryurl/v1/users/: x509: certificate ...
0
votes
0answers
15 views

Adding network interace to host kills kubelet

Running Openshift 4.1 on K8s v1.13.4. I'm trying to add a second network (for NFS storage) to my compute nodes, and as soon as I do, the node stops reporting NodeReady. See below logs from kubelet. ...
0
votes
0answers
16 views

How can I set env variables for a dockerfile at runtime in Jenkinsfile?

I have a Jenkinsfile that builds a docker image and deploys that image to 4 environments. I would like environment variables in my docker image only for 2 of the 4 environments. How can I do this?
-1
votes
0answers
24 views

Can OKD (Openshift origin) be used for production grade cluster?

I’m setting up a new k8s cluster, and I find the concept of BuildConfig and ImageStream quite interesting. But I do not have the incentive to buy Openshift support since the project context does not ...
0
votes
0answers
14 views

I want to login to openshift from eclipse

I want to connect to openshift from eclipse by using rest client. By using browser i am able to login, but from elipse(STS) i am getting error. Exception in thread "main" com.openshift.client....
0
votes
0answers
24 views

How to copy the filesystem of the pod container on openshift to my local computer?

I have to copy a folder data on openshift pod container to my local computer. I have tried using rsync command for the same. But it asks for the rsync installation on the openshift pod itself, which I ...
1
vote
0answers
22 views

Balancing redis cluster between 2 regions

I have a 6 node redis cluster in a stateful set. The first 3 nodes are the masters and the next 3 nodes are the replicas. I'm currently using a nodeSelector to specify which region I want my nodes to ...
0
votes
0answers
19 views

Failed Start etcd

i install openshift origin in centOS7 i install ansible, but etcd cannot start, i did restart host, enable restart stop etcd (systemctl), but didnt work, please some one help me [[email protected] ~]# ...
0
votes
0answers
21 views

How to create custom haproxy IP address based routes in the openshift haproxy router

I have an OKD 3.11 cluster up and running with the openshiftrouter configured. However now, I need to use the openshift haproxy router to add my own routes without essentially mapping the route to a ...
0
votes
0answers
14 views

can we use openshift operators to achieve 'infrastructure as service' instead of templates

I have a general doubt about Openshift templates and operators. I have been reading articles in internet regarding on how we can achieve Infrastructure-as-Code and it refers to templates. For ...
0
votes
0answers
18 views

How can i use username and password authentication of the openshift-go-client?

I tried to use the Openshift go-client to access objects inside Openshift. But I was not successful with the authentication via username and password. Does anyone know how to use the client with ...
1
vote
1answer
32 views

openshift_logging_es_nodeselector install EFK on infra nodes

I am trying to install EFK on my cluster and am having problems. here is my node description snip (okd 3.11) metadata: name: okdmastertest.labtest.mycomapny.com selfLink: /api/v1/nodes/...
0
votes
1answer
28 views

Having a problem encrypting password from a Spring Boot using OpenShift

I'm trying to deploy a Spring Boot app reading encrypted password for my database details using OpenShift. Here is my application.yml looks like jpa: hibernate: ddl-auto: none ...
0
votes
2answers
33 views

How to simulate nodeNotReady for a node in Kubernetes

My ceph cluster is running on AWS with 3 masters 3 workers configuration. When I do kubectl get nodes it shows me all the nodes in the ready state. Is there is any way I can simulate manually to get ...
1
vote
0answers
24 views

loading a docker container of geomesa accumulo in openshift

I was trying almost all built containers in the internet of Geomesa Accumulo to be used as a container in Openshift. an example of a docker container is this one https://www.geomesa.org/documentation/...
0
votes
0answers
21 views

minishift - where to get the ansible playbooks for metrics

I am running minishift locally and want to install metrics on the same. I learned that metrics are removed from minishift and there is a way to enable them through ansible-playbooks. I am not very ...
0
votes
0answers
29 views

How to edit new project template to add quotas?

Can anyone of you tell me on how to edit default project templates in openshift to add quotas and limits during creation of projects. I have followed few links in internet https://docs.openshift.com/...
1
vote
1answer
30 views

What's the hostname of openshift master server for internal access?

If I want to access the REST api of the openshift master server from anywhere in my company I use https://master.test04.otc-test.company.com:8443 which works just fine. Now I'm writing an admin ...
1
vote
1answer
53 views

How can I choose a name for my application on OpenShift

I deployed my application on Openshift using the commands: oc project <projectname> Then I navigate to my application's directory and use the command: mvn fabric8:deploy -Popenshift This ...
0
votes
0answers
9 views

Openshift project service accounts can't push/pull images from internal registry?

After adding a buildconfig template to my project and starting it, the custom build tries to pull images using 'docker pull docker-registry.default.svc:5000/myproject/myimage' (this is an image I ...
-1
votes
1answer
50 views

What is the difference between date format “2019-06-17-04:00” and “2019-06-17Z”? exactly what time does “2019-06-17Z” point to? [duplicate]

I’m using XMLGregorianCalendar in my spring boot app to define a date range and using the same in the input while calling an REST service. However, when I’m calling the service from my local, I see ...
1
vote
0answers
28 views

How to configure OpenShift from Eclipse IDE?

I want to deploy my web application using OpenShift. I have coded the same in Eclipse IDE. When I am trying to configure OpenShift from Eclipse by entering the Server URL and Token code, I get the ...
0
votes
1answer
34 views

Is there any way to list down the users in default groups in openshift?

I want to list down the users in default groups such as system:authenticated, system:authenticated:oauth, system:unauthenticated in openshift. I got this link to find out default groups and roles ...
0
votes
0answers
15 views

How to deploy dockerhub or redhat container catalog (external registries) images in minishift

I'm studying openshift from and administration perspective and it is costing me a lot to understand it and one thing that I want to do is to deploy known containers into it and all I can do with ...
0
votes
1answer
40 views

How to stop/crash/fail a pod manually in Kubernetes/Openshift

I'm running rook-ceph-cluster on top of AWS with 3 masters - 3 worker node configuration. I have created my cluster using this. Each worker node is 100 GiB each. After setting everything up. I have ...
0
votes
0answers
40 views

create more than one route in openshift console?

I searched and found this solution for assigning custom domain with Openshift console: https://sid.justtry.fun/a/46107106/2650501 ,but my default route is like *.online-starter.openshift.com ...
0
votes
0answers
10 views

Openshift: Simplest way to create an ImageStream from a github project

I have a project which is available on github. I can actually add a new Java Enterprise app based on this project and have the ImageStream available: $ oc new-app https://github.com/ocpuser/ocpdemos....
0
votes
0answers
11 views

Giitea Webhook x509: certificate signed by unknown authority

On openshift cluster i deployed gitea v1.9.0 and i added a webhook for triggering the pipeline, now i'm getting the following error: Delivery: Post https://[email protected]:8443/apis/build.openshift.io/v1/...
0
votes
1answer
22 views

oc-command to forward local-ports to remote debug ports based on service-name instead of pod-name

To minimize the setup-time for attaching a debug session to the remote pod (microservice deployed on OpenShift) using intelliJ, I am trying to get the most out of the 'Before launch'-setting of the ...
0
votes
0answers
95 views

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 ...
0
votes
0answers
35 views

git repository containing code and war file

With OpenShift online starter when I create a new project and choose wildfly 10.1 as an application server, a repository is required to build, is the source code compiled or is the war file (web ...
-1
votes
0answers
46 views

Can not run Jenkinsfile for Maven build

I am trying to run my jenkinsfile for my maven project. I am just trynig to build, test and package my project. Previoudly, with the same script, i could do these without any error but now when I am ...
0
votes
0answers
17 views

Not able to see gitlab-runner template in openshift project

I have created eval login for OpenShift online and GitLab. (None of this installed on my premises) 1) Created a project in OpenShift and created abc project in it. 2) Imported template in OpenShift ...
0
votes
1answer
41 views

If Header is itself not present and we want to validate and proceed in routeBuilder in Camel

I am facing an issue in camel coding as: 1). We have two layers of code , first one is consumer and another is producer. 2). Consumer is calling producer as producer has many microservices. 3). ...
0
votes
0answers
12 views

Urban code deployment in Open Shift Cluster

We will be deploying containerized applications in open shift cluster using the Urban Code Deploy(UCD) - Open Shift(OS) plugin. In order to use the plugin, we need OS CLI to be installed on the UCD ...
0
votes
1answer
17 views

How to run once an openshift job with configmap

I have figured how to run a one time job in openshift (alternative to docker run): oc run my-job --replicas=1 --restart=Never --rm -ti --command /bin/true --image busybox How can I mount a configmap ...
-1
votes
1answer
52 views

How can I ssh into a container running inside an OpenShift/Kubernetes cluster?

I want to be able to ssh into a container within an OpenShift pod. I do know that, I can simply do so using oc rsh. But this is based on the assumption that I have the openshift cli installed on the ...
1
vote
1answer
68 views

Docker build strategy with Maven

There are several ways to make a build for Openshift, one of them is Docker build strategy I do have a Dockerfile in the root of my repository: FROM maven:3.6.1-jdk-8 ... RUN mvn clean package ......
0
votes
0answers
34 views

accessing/passing openshift pod environment variables within scripted “oc rsh” calls

maybe some of you openshift/docker pros can help me out with this one. Apologies in advance for my formatting, im on mobile and dont have access to exact error codes right now. I can supply more ...
1
vote
1answer
39 views

Unable to login to openshift with CLI

I'm trying to login to starter openshift server. Then getting error: C:\Users\Admin>oc login https://console-openshift-console.apps.us-west-1.online-starter.openshift.com error: invalid character '...
1
vote
1answer
43 views

How to control openshift rollout (CI/CD pipeline)?

We've been using a deployment config with image change trigger so that when a new image appears in the configured image stream a new rollout would be triggered. This has worked relatively well, but ...
0
votes
0answers
10 views

How do we get access to active mq broker's web console which is running as a service in openshift

Tried creating a routes for activemq service, but while accessing the URL it says application not available. How do we get access to active mq broker's web console which is running as a service in ...
0
votes
0answers
25 views

How should I create an API over Docker with transparent database connection?

I need to write an API on C# that runs inside a Docker container. This API connects to Database. What I am trying to achieve is a transparent deployment, meaning If I deploy this docker file (with ...
1
vote
1answer
39 views

Unable to anonymously pull images from okd/openshift-origin docker registry using docker pull

Using okd/openshift-origin 3.11 (and previous versions) we've been unable to get anonymous image pulls working. We've tried adding various groups to the registry-viewer role as indicated by the ...
-1
votes
0answers
23 views

How to get extra variables from Ansible Tower in my playbook

I don't know how to get variables set by a user in CloudForms in my playbook, via Ansible Tower extra variables I'm developing ansible roles. A user fills a form in Cloudforms, then Ansible Tower ...
0
votes
0answers
7 views

explain etcd histogram metrics

Can anyone explain etcd metrics like backend_commit_duration and disk_wal_fsync_duration_seconds_bucket? I have followed few links(https://prometheus.io/docs/concepts/metric_types/) in internet but ...
-2
votes
0answers
14 views

Error when passing my code to an openshift container

I am passing my source code from a dockerfile, but I never copy it to the container and when executing nodejs it fails. this is my yaml structure of my template for buildconfig spec. spec: ...
-4
votes
0answers
40 views

Where is the documentation on how to use persistent local storage

I need to use persistent storage on Kubernetes nodes to support stateful services. (Elasticsearch and Kafka). Currently we are using EBS persistent volumes. Using I3 local SSDs will increase ...
0
votes
1answer
54 views

Can I limit the number of my own custom resources that can be created with a ResourceQuota?

If I have a custom resource definition like this: $ kubectl get crd unifiedpushservers.push.aerogear.org NAME CREATED AT unifiedpushservers.push.aerogear.org 2019-...