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).
7,212
questions
0
votes
0
answers
4
views
Vite: Could not resolve entry module (index.html)
I am new to Openshift 3.11 deployment, I created a Multistage Dockerfile for a React application, the build want correctly on my local machine, but when I run on the openshift cluster I get the error ...
0
votes
0
answers
4
views
Does anyone know how to export or obtain the cpu information (core) for each Openshift project?
Does anyone know how to export or obtain the cpu information (core) for each Openshift project? It is listed on the projects list in the console but there is not a way to export that information from ...
0
votes
0
answers
13
views
How to autosacale pods based on number of http requests?
I want to scale pods using HPA(Horizontal Pod Autoscaler) based on rps (http request per sec) on Openshift environment. HTTP requests are round-robind to pods via HAProxy that Openhift provides. I'm ...
0
votes
0
answers
4
views
Unable to run wordpress example on OpenShift
I am trying to run Kubernetes Wordpress sample on OpenShift. I tried it already on Minikube and it worked. However, when I try to deploy it to OpenShift sandbox using oc (with oc apply -k ./), I get ...
-1
votes
0
answers
14
views
How to get Openshift Pod Arguments in Springboot
How to access openshift pod container information inside the spring boot application?
My Pod is like this:
apiVersion: v1
kind: Pod
spec:
containers:
- args:
- '--management.metrics.tags....
0
votes
0
answers
9
views
Switch the logging mode in JBOSS
I wanted to change the jboss config so that all logging (be it application, or jboss itself) is written to the console when it starts, so it shows up directly in the pod logs. (the current config ...
0
votes
1
answer
7
views
OpenShift node alpine Image - npm doesn't work
I'm experiencing a very weird scenario with a deployment in OpenShift.
If I build the image locally before pushing it to the registry, taking that image to OCP, everything works. However building and ...
0
votes
2
answers
28
views
What are the DNS 952 subdomain conventions
Ran into an error with my Openshift configuration saying my route must conform to the DNS 952 subdomain conventions.
What are they?
0
votes
1
answer
54
views
Golang/Kubernetes: How to get/describe Node events
I am trying to get a specific node events through Golang Kubernetes client.
something similar to events we get when I run kubectl describe node <node-name> the lower end part of events.
I am ...
0
votes
1
answer
15
views
OpenShift oc new-app --docker-image=<podman img created from Dockerfile> - image not found/visible
I've created an image with podman build, the image exists locally, I did not push it to any registry.
Now I am trying to create a new app with oc new-app --docker-image=theimage --name=myapp but it ...
0
votes
0
answers
32
views
The server uses a certificate signed by an unknown authority
Any help or hint would be greatly appreciated it!!
I have windows 11 Pro.
I installed openshift.
I did "crc setup" and I did "crc start":
INFO Adding crc-admin and crc-developer ...
0
votes
0
answers
40
views
multiple configMap files in Helm
Somehow I cannot load environment variables and I have the following error when the pod starts:
Error: Could not find or load main class
Caused by: java.lang.ClassNotFoundException:
The structure of ...
0
votes
0
answers
21
views
Spring Cloud dataflow in Openshift - how to get execution Id
Currently I am running spring cloud data flow in open shift environment.
I can able to trigger the open shift poda through it. I have used oracle database in both dataflow and application which I am ...
0
votes
0
answers
34
views
Kubernetes/OpenShift: Can I patch a node condition status?
I am trying to patch the node condition type status, for example can I turn/replace the Whatever Node Condition type status from false to true and vice versa?
Edit: When I try to patch I am not ...
1
vote
1
answer
28
views
oc + bash - How to execute a local function in Openshift pod with "oc exec"?
I want to execute a local function in my script in each pod of Openshift.
function1() {
...
}
function2() {
...
}
verify() {
... # the function I want to execute in each pod
}
main() {
...
0
votes
1
answer
23
views
Openshift on-premise deployment by in house Devops teams advisable?
For a medium-sized enterprise, we want to deploy RH Openshift (or any other K8 platform) - on-premise - due to security related policies
What are the risks associated with on-premise Openshift (or K8 ...
1
vote
0
answers
48
views
Using Kubernetes client-go lang to change Node Condition Status
I need to patch or change the node condition status, any idea how to do that using go lang "k8s client" ?
Edit:
I can see that inside the Node interface there is patch, not sure about the ...
0
votes
0
answers
16
views
K8S node_problem_detector Node Condition does not turn back to False
I am trying node problem detector for k8s, Node Condition turns to True whenever the pattern triggered but never goes back to false.
Any idea?
0
votes
0
answers
22
views
Architecture for Logstash and how to deploy
I am tasked to set up an Elastic stack on OpenShift. I have limited experience in both. I planned to use the Elastic OpenShift operator (https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-...
0
votes
1
answer
23
views
ArgoCD: How to deploy and target specific cluster in ArgoCD?
In ArgoCD how to target a deployment into a specific cluster or a group of clusters in a multi-cluster environment ?
2
votes
1
answer
50
views
Helm/Kube Error: query: failed to query with labels: stream error
Anyone faced similar issue with helm, even with helm list I get that
query: failed to query with labels: stream error when reading response body, may be caused by closed connection. Please retry. ...
0
votes
0
answers
17
views
First time creating HttpRequestMessage instance takes time
Hello I have a problem I have an application which are hosted in OpenShift and I noticed that after deploying or restarting pods application first call is very slow. It takes more than 1 second just ...
1
vote
1
answer
18
views
Openshift default monitoring stack and Service Mesh Operator
I am using Openshift v4.6 and I use the default monitoring stack with user defined projects enabled. Openshift's documentation clearly states:
Custom Prometheus instances and the Prometheus Operator ...
0
votes
1
answer
28
views
Deployment gaps at fast pace growing application [closed]
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 ...
0
votes
2
answers
34
views
How can I use OpenShift built in Ingress to expose SMTP/IMAP?
Can I use OpenShift built in Ingress operator to expose SMTP and IMAP services?
I can't use NodePort Service as I have a cluster that is setup to not expose any public node IPs, all traffic goes ...
0
votes
0
answers
18
views
OpenShift 4 support ActiveMQ Artemis?Or need suggestion for best message broker compatibility with openshift4
Can anyone guide me on what message broker has the best compatibility with OpenShift 4 or which one should use? Does OpenShift 4 support ActiveMQ Artemis? Any detail with the official docs link will ...
0
votes
2
answers
20
views
List permission of specific user in openshift
I would like to know how to list all the permission belongs to a specific user/ group.
I am using oc describe clusterrolebinding | grep <user> and but I don't think that is correct.
0
votes
2
answers
35
views
Openshift routes are not redirected to particular service
I have deployed few services of my application on openshift :
E.g., app-ui, app-backend,app-store ,main.
I have defined separate routes for these services to access externally.
app-ui -- ui.test-dev.*...
1
vote
0
answers
25
views
How to connect a remote server to mongodb pod in open shift cluster using oc cli commands
I have a mongodb pod running in open shift cluster.
I want to connect to that mongodb from a remote server machine using oc cli command.
How can I do that
I searched over the net and found concept of ...
0
votes
0
answers
19
views
Helm Patch Service Account - Why does ArgoCD work?
TL;DR: Why does ArgoCD (using Helm) apply the patch on an already existing service account (ex. default) while running Helm from the cli does not work?
On OpenShift 4.8, I want to patch a service ...
1
vote
1
answer
78
views
Bitnami airflow scheduler could not connect database while webserve can connect even they have same properties?
I want to configure airflow on openshift.
I set database on openshift like below :
kind: Service
apiVersion: v1
metadata:
name: airflow-database
namespace: ersin-poc
spec:
ports:
- name: ...
1
vote
0
answers
42
views
Why Remove data content of Openshift configmap
we use opebshift 4.7.
we have an issue on one of the config map .
on the openshift conteroller manager namsespace ,the configmap name is openshift-global-ca and the data of config map is removed.
here ...
1
vote
1
answer
58
views
Update node condition type in status
I am trying to patch, clear Node conditions in OpenShift and/or Kubernetes cluster on a worker node. Patch isn't working, trying even workarounds, maybe update the key in etcd.
Main problem that i ...
0
votes
1
answer
33
views
Disable Redhat Openshift Service on AWS
I've enabled RedHat OpenShift Service on AWS but can't find an intuitive way to disable it.
Wondering if anyone has idea and also if the ROSA CLI is the only way to do it?
Also, if someone can help ...
0
votes
1
answer
71
views
Readiness probe failes because mongosh --eval freezes
I installed the latest bitnami/mongodb chart for a standalone architecture.
The Readiness and Liveness-probes are failing because the statement
mongosh --eval "db.adminCommand('ping')"
does ...
0
votes
0
answers
21
views
Quarkus rest client - special character backslash in key of the application properties
we are trying to implement rest client using quarkus and as per the documentation below are the application properties to set to call rest api
org.acme.rest.client.ExtensionsService/mp-rest/url=https:/...
0
votes
0
answers
21
views
Unable to list machinesets on Openshift 4.10 cluster
I am using the below code snippet to list machinesets but unable to get back any machinesets on the cluster:
cfg, err := config.GetConfig()
if err != nil {
log.Fatal(err)
}
opts :=...
0
votes
1
answer
26
views
How the Openshift Ingress Object picked up by particular router
lets say we have IngressControllerA , IngressControllerB and created Ingress Object IngressA, IngressB, how to tell IngressA object router to be pickedup by IngressControllerA and IngressB object ...
0
votes
0
answers
31
views
How to call grpc service in openshift from java
I have a client and a service with gRPC. Locally they work well. I tried to start the server in openshift (minishift):
kind: DeploymentConfig
apiVersion: v1
metadata:
name: app-grpc
...
0
votes
0
answers
6
views
Openshift 3.11 How can I install v1beta1.servicecatalog.k8s.io?
How can I install v1beta1.servicecatalog.k8s.io in Openshift 3.11??
From my knowledge you have to use svcat to do that. But I didn't got it how to install svcat and how to use it to install the ...
0
votes
0
answers
67
views
Setup of JMS message listener invoker failed for destination 'TESTQUEUE' - trying to recover. Cause: null
My application run well in my local machine and i am able to connect to IBM MQ and poll message. I am facing below issue in polling after i deploy my application on open shift.
Error:
2022-05-03 02:02:...
0
votes
0
answers
19
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 ...
0
votes
1
answer
33
views
How to share a software product having multiple microservices and with specific Kubernetes configurations
I am new to Kubernetes. I have a doubt.
Say I have a software product which has 5 Microservices. It is deployed on my Kubernetes cluster (OCP Cluster) and it is working fine. Each microservice has ...
0
votes
0
answers
17
views
Can't provision new worker nodes: OpenShift API times out while searching for OpenStack volumes
I'm trying to spin up a new worker node on OpenShift 4.8 by scaling up a MachineSet. The cluster is running on top of an OpenStack 16 infra.
The process ends up in a timeout while looking for the ...
0
votes
0
answers
12
views
Kerberos on OCP for quarkus
Can someone help if they implemented kerberos on OCP. Tried via quarkiverse site and able to generate ticket for principal but while connecting with soap getting unauthorized exception.
Anyway to ...
0
votes
0
answers
14
views
how can i run oc login and oc rollout using github action?
here are my some of the workflow steps and last one is failing
- name: Install oc
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: 4.10
# https://github.com/...
0
votes
1
answer
41
views
How to mount one file from a secret to a container?
I'm trying to mount a secret as a file
apiVersion: v1
data:
credentials.conf: >-
dGl0bGU6IHRoaYWwpCg==
kind: Secret
metadata:
name: address-finder-secret
type: Opaque
kind: ...
0
votes
0
answers
15
views
How to mount files to a folder with existing files in a pod? [duplicate]
I have a Spring boot application that is packaged in an image and run by a command in docker file
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -jar /deployments/app.jar" ]
I ...
1
vote
1
answer
80
views
Openshift go-client api call panic out - "runtime error: invalid memory address or nil pointer dereference"
I am using a basic go code to verify the the route created in a namespace using OpenShift api module - https://github.com/openshift/api but it's panic out
$ cat route.go
package main
import (
&...
0
votes
0
answers
33
views
sendling log4j logs in stdout to a file in an openshift container
I am trying to change the log4j properties from stdout to a file and used the below format , but it did not make any difference.I am still getting the logs in stdout not in file. I am not sure if i ...