Questions tagged [openshift]
OpenShift is a commercial enterprise-ready container platform built on top of Kubernetes which allows you to run containerized applications
7,918
questions
-1
votes
0
answers
7
views
nifi with openshift: pod restarting intermittently
I have nifi running in openshift, and observe that after some time of operation a dialog box pops up on nifi UI, containing following message, and pod restarts.
Application is not available The ...
0
votes
1
answer
16
views
Multi Pod Cloud Environment Spring Boot application change log level at runtime
I have an application used spring boot + log4j2 running on openshift more than 2 pods.
However, our logging configuration changing after sprint boot initalized i mean , reconfigure. So, i do not use ...
0
votes
0
answers
6
views
var partition storage issue in openshift cluster
In my openshift cluster i have one bastion server, in which/var partition space is consumed 100% & when it reaches 100% it got it self available 2gb.how and why please explain the impact on ...
0
votes
1
answer
20
views
Is there a way to restart all running pods in a OpenShift cluster through the CLI?
I need to restart a bunch of pods at once and I need to do it through the CLI.
I've been looking through the OpenShift commands and documentation and haven't been able to find any commands that would ...
0
votes
0
answers
34
views
docker container poi excel generation throws java.lang.UnsatisfiedLinkError
Have async code to generate excel report using apache poi and at some line of code, below error is thrown, it dint give me more details on what line is causing the issue
@Configuration
@EnableAsync
...
0
votes
0
answers
14
views
OpenShift REST API to trigger clusters upgrade in an effort to automate cluster upgrade process [closed]
Wondering if developers have experience in OpenShift cluster upgrade automation?
I'm looking at the automation feasibility to manage OpenShift clusters upgrade through REST API.
My OpenShift clusters ...
0
votes
0
answers
8
views
failed to get filesystem from image: error removing bin to make way for new symlink: unlinkat //bin/sh: permission denied
I'm trying to build a Docker image for my Spring Boot app using a CloudBees CI pipeline. Since I'm unable to use Docker due to permissions issues, I've decided to use Kaniko to build the image. ...
0
votes
1
answer
10
views
OKD: After Creating Persistent Memory for a Cluster image registry not reachable
My Cluster Setup:
Baremetal
OKD 4.15
1 Bootstrap : Fedora CoreOS 4CPU 16 RAM 120 GIB Storage 192.168.4.x
3 Control : Fedora CoreOS 4CPU 16 RAM 120 GIB Storage 192.168.4.x
2 Compute : Fedora CoreOS ...
0
votes
0
answers
17
views
Kubernetes - oauth2-proxy - Keycloak OIDC - OAuth2CodeParser error - CODE_TO_TOKEN_ERROR code already used for userSession and client
I installed on Kubernetes (OpenShift) an application (application A) which is using OAuth authentication.
The authentication is done server-side - the backend application is making the handshake with ...
0
votes
3
answers
738
views
Not able to achieve end to end encryption in openshift 4.3 route
We have a AngularJS application where we have a nodejs app which creates certificates and key for service hostname only when HTTPS port is 443. Then created certificates are consumed in nginx as shown ...
0
votes
0
answers
17
views
Issues with Crystal Report Runtime Installation in OpenShift Container Server
I'm having trouble installing the Crystal Report Runtime on OpenShift Container Server. I've tried a few methods, but I haven't been successful yet. I might need some help from someone who is familiar ...
2
votes
3
answers
10k
views
Error: timed out waiting for the condition
On Ubuntu 18.04 with Docker 18 and OpenShift OKD oc v3.11.0 a local cluster will not start successfully and produce a time out error message.
Is it possible to start a local cluster on Ubuntu 18.04 ...
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 ...
0
votes
0
answers
11
views
Zeebe Brokers and Gateway communication on VM's and OpenShift architecture
My configuration is that Zeebe brokers are on VM’s and the Gateway and Operate are in the OpenShift k8s cluster.
I need to establish connection between my brokers and Gateway. Is it possible to do ...
0
votes
0
answers
23
views
Openshift Pipelines (Tekton) failing after upgrade [closed]
We have a number of Openshift pipelines which were running fine, that have started failing following a cluster upgrade from Openshift 4.12.23 to 4.12.54
The pipelines all give the following error:
...
7
votes
10
answers
48k
views
How to get the logs of a POD in openshift to local file
I have my spring boot application running on Openshift as container built using docker Image. I have enabled the logging in my application and prints all the logs.
Now i want to examine the log files ...
0
votes
1
answer
21
views
OpenShift build error: couldn't find remote ref master
I have an OpenShift buildconfig that refers to a Git repository under bc.spec.source as follows:
git:
uri: ssh://openshift@my-server/my-repo
ref: master
When I clone the repository outside ...
0
votes
0
answers
25
views
How come my git-clone task is failing in the OpenShift pipeline?
I am currently working on a project where I have to set up a pipeline and add tasks. I was able to add a cleanup task, a git-clone task, flake8 task, and a nose task and it was working perfectly fine ...
0
votes
1
answer
15
views
How to correctly use the AND operator in Prometheus to join two queries?
I'm trying to combine two PromQL queries to create alerts and automations in our Openshift clusters, but I'm running into a problem when using the AND operator. The idea is to apply a taint when ...
0
votes
2
answers
31
views
Helm must override values yaml file
I have structure similar to the following example:
values.yaml
config:
value: "unset"
values-dev.yaml
config:
value: "development"
values-prod.yaml
config:
value: "...
1
vote
2
answers
3k
views
Consume certificate and key from a secret in a route in openshift
How to create a secret with already available certificate and key in openshift, then add it to the route
0
votes
1
answer
21
views
Configuring restartPolicy for a container in a multi container pod
In my kubernetes yaml(in openshift env) I have defined two containers.
Also, spec section has restartPolicy set as Always.
spec:
restartPolicy: Always
I want one of the container to have ...
0
votes
0
answers
24
views
Red Hat OpenShift Local installation on Windows 11 fails with message "requires the Windows 10 Fall Creators Update (version 1709) or newer"
I'm being unable to install latest OpenShift Local in Windows 11 laptop.
I've administrator privileges in the machine.
Installer shows error:
"Red Hat OpenShift Local requires the Windows 10 Fall ...
0
votes
1
answer
30
views
Openshift nginx proxy_pass not redirecting from current host to another
This is my DockerFile
FROM docker-enterprise.net/developers-nginx/nginx1.22/rhel8/nginx-rhel8:latest
USER root
RUN mkdir /.ionicsecurity && \
chmod 775 /.ionicsecurity && \
...
-1
votes
1
answer
26
views
May Kubernetes restart java container if java heap size exceeds allowed from -XX:MaxRAMPercentage
If I understand correctely -XX:MaxRAMPercentage sets the maximum java heap size for a JVM.
If I run JVM container in Kubernetes and have -XX:MaxRAMPercentage=60.0 with the following configuration:
...
0
votes
0
answers
13
views
OpenShift Operators clash over InstallModeType
OpenShift V4.12, have four operators installed in namespace openshift-operators, however they clash over there required InstallModeType. When the default global operator-group within the namespace is ...
0
votes
0
answers
10
views
OpenShift Pods failing to be deleted when Job is deleted
On OpenShift V4.12 the cronjob 'collect-profiles' within the namespace 'openshift-operator-lifecycle-manager' starts a job every 15 minutes. The cronjob has a setting of
successfulJobsHistoryLimit: ...
0
votes
1
answer
134
views
2 Pods picking up same database row with event triggers
Same Spring boot application is running on 2 pods. Application has scheduler running with a cron job and picking up data from database ( JDBC Connection - JPA) . Both the pods are fetching same row ...
-1
votes
1
answer
32
views
OpenShift Client Python - Extracting resource details
So I'm following the OpenShift Client Python docs and I can use a script I created to successfully list resources like pods, jobs, deployments etc.
I'm trying to understand how to extract some more ...
0
votes
1
answer
31
views
How do I configure multi-tenant Kafka-backed Knative channels in an Openshift?
Goal:
We want to support multiple environments in the same Openshift. We use the service mesh control plan and namespaces defined in the member rolls, as the boundaries for each environment. Each ...
0
votes
1
answer
37
views
How to check if a container image is signed in Openshift?
I have an openshift cluster. I have an image which I know is not signed. I want to check whether if an image is signed or not manually? Is there a command for this? I tried commands like these:
podman ...
1
vote
0
answers
54
views
Tekton, npm ci, and "npm ERR! EMFILE: too many open files, open '/root/.npm/_cacache/"
I'm using an incredibly simple pipeline to build my angular App. I run it on an openshift cluster.
these are the two tasks:
tasks:
- name: fetch-source
params:
- name: url
...
0
votes
2
answers
490
views
How to read environment variables in liquibase changelog
i'm executing a sql query in my changeset as follow:
<changeSet author="xxxxx" id="1682329977552-1" context="unittest">
<preConditions onFail="CONTINUE"...
-1
votes
1
answer
1k
views
Struts 2 file upload and save
I have successfully uploaded a file in Struts2 with the following code:
String filePath = servletRequest.getSession().getServletContext().getRealPath("/") + "WEB-INF\\files\\";
...
0
votes
2
answers
696
views
OpenShift "oc rsync" command downloads files, but still outputs WARNING
From my Windows machine,
oc rsync pod_name:/remote/path/to/dir /local/path/to/dir -c container_name
seems to be working and downloading files.. but with:
WARNING: rsync command not found in path. ...
0
votes
0
answers
27
views
Why does openshift ingress not allow router annotations?
Small question for you.
I have just setup a dev openshift cluster in the cloud and I am trying to create an ingress yaml to define router settings. I basically just want to stop the default redirect ...
31
votes
7
answers
117k
views
How to restart pod in OpenShift?
I updated a file (for debug output) in a running pod, but it isn't getting recognized. I was going to restart the pod to get it to take but I only see oc stop and not oc start or oc restart. How would ...
0
votes
0
answers
21
views
How to use Prometheus to gather custom metrics from multiple pods in Openshift
Right off the bat, my tech knowledge of OpenShift is pretty limited so please forgive any incorrect use of terminology here.
Let's say I have a site that is called MySite. We want to expose some ...
0
votes
1
answer
3k
views
Getting accurate status of openshift pod deployment
I have deployment stage in Jenkins which executes "oc patch" and "oc rollout" commands. These commands replaces docker image name in DeploymentConfig and rollout the changes in openshift.
As you can ...
-1
votes
0
answers
36
views
UML representation of containerized services [duplicate]
Almost all diagrams illustrating service solutions on platforms like Kubernetes/OpenShift are not standardized in any way. As there is not much reference material available for UML modeling I would ...
0
votes
0
answers
16
views
Verify encryption of rest secrets [etcd] in Openshift v4
I got this instruction on how to encrypt at rest of Openshift 4 secrets.
https://docs.openshift.com/container-platform/4.14/security/encrypting-etcd.html
But there's no verification provided. Only ...
0
votes
0
answers
18
views
The [dot_product] similarity can only be used with unit-length vectors error when running container as non root
I have the following code (fragment):
# 6. index documents to Elasticsearch
kb = ElasticsearchStore(
es_connection=es,
index_name=index_name,
embedding=emb_func,
...
0
votes
1
answer
19
views
Using OpenShift template to conditionally include/exclude certain resources during apply
I am using Ansible to automate the oc process -f allresources.yaml | oc apply -f - command. Inside of allresources.yaml template, I have my routes, services, etc... I want to add an additional but ...
0
votes
0
answers
9
views
Permission denied When deploy Splash in OpenShift
I run Splash in Docker local it log like this :
2023-12-05 09:16:41+0000 [-] Log opened.
2023-12-05 09:16:41.584101 [-] Xvfb is started: ['Xvfb', ':657831265', '-screen', '0', '1024x768x24', '-...
2
votes
2
answers
9k
views
Database Server is not found. Please verify the login, password and server fields
I have 2 gears in OpenShift configured as follows:
application gear, scalable, running PHP 5.3
database gear, non scalable, running MySQL Database 5.1 and phpMyAdmin
I am running PrestaShop's ...
0
votes
0
answers
35
views
Pulumi and Golang to apply a subscription manifest onto a OpenShift Cluster
I am a newbie in using Pulumi. I am trying to use module github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/operators and when I do go get github.com/pulumi/pulumi-kubernetes/sdk/v4/go/...
1
vote
1
answer
1k
views
Change rights of `/etc/passwd` in Dockerfile
I am building a Podman image for Openshift, and have an issue with permissions.
Following this guide, and because Openshift assigns a random UID and a GID "0" when running containers, I try ...
0
votes
1
answer
23
views
Can't login on deployed APS app, problem with authenticating
I have some trouble with the logging in to my APS Hubs Browser app after I have deployed it to OpenShift.
What I see when I try the app: type URL, get to the home screen, click login, we have SSO so ...
0
votes
4
answers
2k
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
votes
1
answer
27
views
ImagePullBackOff deploying application in OpenShift using Helm Chart
I have a Remix App which is running successfully using Docker. Then, using OpenShift and HelmChart, I'd like to deploy the application in OpenShift. However, I am getting the error ImagePullBackOff ...