Questions tagged [openshift]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Get OCP containers information

I'm trying to get some information of all the containers running in a namespace: oc get pods -n my-namespace -o custom-columns=NAME:.spec.containers[*].name,CPU:.spec.containers[*].resources.requests....
Mari Faleiros's user avatar
-1 votes
0 answers
10 views

How to store non-git credentials in Openshift for a Tekton pipeline?

I have a Tekton pipeline that will be posting to a rest API. I need to pass credentials to this, but as far as I can tell from this documentation, the only options for a pipeline are Git and Docker ...
jeremywat's user avatar
  • 131
1 vote
1 answer
60 views

How do I get a secret into a property file with openshift and kubernetes?

I am new to openshift and kubernetes. I have a secret in openshift and made it avaliable to the pod as an environment variable. What is the best practice to get that value into a properies file (java) ...
Nifle's user avatar
  • 113
0 votes
0 answers
17 views

Kubernetes Ingress: Having Load Balancing + Session Stickiness by Header/Cookie Value provided in the Request

Following scenario in my cluster: I have a Spring Boot RestAPI with 1 Pod running, on which we receive requests. Each of these requests go through a standart ingress, which routes to a PowerShell HTTP ...
Ayibogan's user avatar
0 votes
0 answers
51 views

Blackbox exporter refuses to verify endpoints which use selfSigned certificates, openshift cluster

We have an openshift cluster with a prometheus operator monitoring stack. Blacbkox exporter is deployed, configured and is running. I want to probe /actuator/health endpoints of Spring Boot ...
Seidz_q's user avatar
0 votes
0 answers
5 views

Does Tekton Triggers support HTTP GET requests?

Does anyone know if Tekton event listeners and triggers work with HTTP GET requests? Going off of this guide: https://tekton.dev/docs/getting-started/triggers/ I tried to create a binding that doesn't ...
Zhao Li's user avatar
  • 101
0 votes
0 answers
23 views

How to configure a prometheus installation of openshift to include the labels of node role in the exporter?

We want to alert based on cpu requests only on worker nodes namespace_cpu:kube_pod_container_resource_requests:sum{kubernetes_node_role=~"worker"} gives no datapoints and namespace_cpu:...
Adrián Blázquez's user avatar
1 vote
0 answers
56 views

Opentelemetry-operator running as root on Openshift/Kubernetes

I need this opentelemetry-operator to run as non-root on the /, https://github.com/open-telemetry/opentelemetry-operator/blob/main/autoinstrumentation/java/Dockerfile I need to change the permission ...
uniwinux's user avatar
0 votes
0 answers
3k views

runc create failed: unable to start container process: exec: no such file or directory

I am trying to deploy a containerized webapp on Openshift by a helm chart. When I deploy the app I get the following error in the pod logs - Events: Type Reason Age ...
Masquerade's user avatar
0 votes
0 answers
15 views

Missing values: gaps during deployments

Some context: I have little experience with ci/CD and manage a fast paced growing application since it saw the light of the day for the first time. It is composed by several microservices at different ...
the_piper's user avatar
1 vote
1 answer
110 views

Apex domain to point to an Openshift ROSA application

We have a ROSA (Openshift on AWS) cluster, working fine with all kinds of domains except one, which happens to be an apex of the Hosting Zone in our Route53. So, say, the domain is example.com and it'...
ptrk's user avatar
  • 141
4 votes
1 answer
172 views

How to get a list scaled down pods in OpenShift?

Besides making a list of pods and list of deployments and then comparing, is there a way in the cli and/or OCP console to list the scaled down pods?
JGS's user avatar
  • 43
1 vote
0 answers
39 views

How do you find allowed HTTP methods in openshift deployment

In classical application deployment, one could query the web server with HTTP method "OPTIONS" to discover allowed HTTP methods On an openshift application deployement, how could we get that ...
steve miller's user avatar
1 vote
1 answer
106 views

Scheduling a build using Kubernetes

The doc https://docs.openshift.com/container-platform/3.9/dev_guide/cron_jobs.html provides details of creating a cron job. To start a scheduled task that executes a build every 10 mins I use the ...
blue-sky's user avatar
  • 111
1 vote
1 answer
388 views

Fluentd unable to read logs from all namespaces

I have a cluster installed on Openshift and used the Cluster Logging Operator and Elasticsearch Operator to enable logging on the cluster. On Kibana, I am only able to see the logs from certain ...
Vini's user avatar
  • 123
1 vote
0 answers
460 views

Auto start and stop of deployments and pods

I want to schedule the deployments according to different timings. Is it possible to configure in the deployment.yml files that the deployment should be scaled to 0 at some hour and scaled up again at ...
Vini's user avatar
  • 123
1 vote
4 answers
2k views

Passing replicas number into container

I have a statefulset with an init container which creates openshift objects upon scaling. I need to pass it the replicas number from the same yaml definition. However the replicas filed doesn't seem ...
flowerProgrammer's user avatar
4 votes
2 answers
3k views

Create service per pod in statefulset

I have a statefulset app which can have any number of replicas. The pods produced should be able to communicate to external comptures. Those pods must act statefully when clients communicate with them....
flowerProgrammer's user avatar
1 vote
1 answer
292 views

How do I setup an OpenShift route that will allow both 80 and 443 traffic to my app?

I'd like to setup a route that will pass both 80 and 443 traffic to the same service in OpenShift. When I try to create a second route it errors out. I want this to be in a yaml like would be used ...
Josiah's user avatar
  • 363
3 votes
2 answers
3k views

What is the difference between a node and a machine on OpenShift?

OpenShift 4.2 documentation defines: Machines A fundamental unit that describes the host for a Node. A machine has a providerSpec, which describes the types of compute nodes that are offered ...
caxcaxcoatl's user avatar
1 vote
1 answer
452 views

CodeReady Container for OpenShift won't start on Windows 10

Two different things might happen: 1 - On the output, get the following messages ERRO unknown error occurred ERRO unknown error occurred ERRO unknown error occurred ERRO unknown error occurred 2 - ...
caxcaxcoatl's user avatar
1 vote
1 answer
5k views

What is the difference between a jail environment in linux and docker container?

I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?
Vishwanath's user avatar
1 vote
1 answer
198 views

OpenShift fails to deploy jenkins - connection refused

I am using the GitHub project elio/openshift-vagrant. vagrant up and then the script oc-up.sh gives me a master and two nodes. Ansible provision runs without problems. After provision I can login to ...
onknows's user avatar
  • 111
0 votes
1 answer
141 views

How to solve `Error creating config for VM: Invalid JSON` in minishift?

minishift start was issued and openshift started: Login to server ... Creating initial project "myproject" ... Server Information ... OpenShift server started. The server is accessible via web ...
030's user avatar
  • 13.2k
1 vote
1 answer
1k views

What is the proper way to fix `error: did not detect an --insecure-registry argument on the Docker daemon` while running `oc cluster up`?

According to this blog one has to change the docker daemon: /usr/bin/dockerd --insecure-registry 172.30.0.0/16 -H fd:// but I wonder why the error occurs and how to fix it properly?
030's user avatar
  • 13.2k
1 vote
1 answer
351 views

elasticsearch-fluentd helm chart on Openshift 3.11 pod failing

I install a fluentd chart on OKD 3.11 with: helm install kiwigrid/fluentd-elasticsearch \ --name fluentd \ -f ../../tools/fluentd/values.yaml \ --namespace logging The pod is created, I can enter in ...
anVzdGFub3RoZXJodW1hbg's user avatar
1 vote
1 answer
297 views

Expose metrics for Kotlin using JMX_Exporter to prometheus

I am trying to use JMX_Exporter for my kotlin code to expose metrics to prometheus in order to show it in Grafana. I have gone through many articles and tried to understand how could it be done. I ...
Radiant's user avatar
  • 121
3 votes
1 answer
10k views

Scale number of pods in OpenShift from oc command line

I am new to Openshift , and want know how to change the number of pods of specific deployment from oc command line. I tried to do: oc scale dc name_of_deployment--replicas=2 Error from server (...
user16571's user avatar
1 vote
1 answer
700 views

Interacting with a Trident container (NetApp) via CLI within a Openshift/Kubernetes cluster?

Background We're currently using NetApps Trident PV (Persistent Volume) orchestrator to dynamically create volumes on our NetApp ONTAP clusters for Pods running within our Openshift/Kubernetes ...
slm's user avatar
  • 232
4 votes
1 answer
4k views

How to use same Helm dependency in many charts?

For example, I have this charts structure: ├── parentChart │   ├── charts │   │   ├── childChart1 │   │   │   ├── charts │   │   │   │   └── postgresql-3.11.6.tgz │   │   │   ├── Chart.yaml │   │   │ ...
Alexey Vinogradov's user avatar
1 vote
0 answers
35 views

How to handle Webhook Endpoint that is behind an OAuth Redirect? [closed]

I am trying to connect a webhook from GitLab (external standalone) to Jenkins (a pod on Openshift) However, when anyone tries to log onto Jenkins, they are redirected to Openshift first, asked to ...
Katone Vi's user avatar
1 vote
1 answer
147 views

declaratively mount a service account secret in OpenShift

I am using helm charts to deploy some webhook handlers. The handlers need to connect to the cluster they are running on to deploy the configuration within it. It works but one step is tricky to move ...
simbo1905's user avatar
  • 1,172
2 votes
2 answers
655 views

Gitworkflow and testing short lived feature branches in Openshift/Kubernetes

Recently my team started adapting git workflow for agile-based delivery, we've been using JIRA, TeamCity and various other CI tools to complete the pipeline. The workflow works great for monolith or ...
Sudheej's user avatar
  • 123
2 votes
1 answer
5k views

How to change a statefulset in OpenShift?

What's the best way to change a statefulset (e.g., modify the ENV parameters, modify PVCs) in OpenShift? oc edit statefulset xyz only allows to change the scaling, nothing else.
AnoE's user avatar
  • 4,876
1 vote
1 answer
514 views

How to implement the Load Balancing in Openshift ?

I have deployed my application on cloud using Openshift. I tried few blogs but could not find out the best ways to implement the Load Balancing . Please help.
Ishant Gaurav's user avatar
2 votes
1 answer
83 views

How to avoid an avalanche of images in Openshift when security patches keep coming in?

Our applications are based on tomcat, strictly speaking on tomcat base s2i image provided by RedHat. This is updated quite frequently, and we need to comply to some regulations and apply the updates. ...
ptrk's user avatar
  • 141
2 votes
0 answers
37 views

How to make fast JSON responses (or equivalent) between server app and front-end apps all running on OpenShift?

I have a system with 5 source data stores (mostly PostgreSQL databases) from which, I want to connect them all to containers running on OpenShift: A library of react applications who's components make ...
Bendy's user avatar
  • 121
1 vote
1 answer
108 views

What are the best logging/metrics reporting tools for use with OpenShift?

OpenShift includes EFK and I'm looking into using that or ELK, but there are so many options (found a link with 50+ options) that I'm trying to narrow down. Ideally something free/cheap. What is the ...
DemiSheep's user avatar
  • 163
2 votes
1 answer
75 views

How do I get Openshift to let Tomcat retain it's hosted site's changes

I have a pod in Redhat Openshift running Tomcat and inside Tomcat I have Ozone Widget Framework, my site hosted in Tomcat. I have executed the oc command to use my existing configuration so that my ...
DemiSheep's user avatar
  • 163
2 votes
1 answer
2k views

Multiple Kafka brokers behind a single OpenShift service?

Is it possible to have several brokers behind a single TCP/IP port? I.e., offer a single endpoint for Kafka clients, and having a scalable amount of brokers behind that? In my company, some people ...
AnoE's user avatar
  • 4,876
6 votes
2 answers
908 views

OpenShift configuration management

As far as I can tell, reading the OpenShift documentation, including https://github.com/openshift/training/, the officially published "standard" way to manage OpenShift configuration (about their ...
AnoE's user avatar
  • 4,876