Questions tagged [openshift-client-tools]

The OpenShift Client tools, known as rhc, are built and packaged using Ruby. OpenShift integrates with the Git version control system to provide powerful, decentralized version control for your application source code.

The OpenShift Client tools, known as rhc, are built and packaged using Ruby. OpenShift integrates with the Git version control system to provide powerful, decentralized version control for your application source code.

329 questions
2
votes
2 answers

What causes terminal to enter a loop outputting "? You must enter a valid HighLine::String" after typing in Openshift login in rhc setup?

I have followed the instructions for setting up Openshift on Mac here, but when I reach step 2 and write my Openshift login, the terminal enters a loop where it outputs "? You must enter a valid HighLine::String". Does anyone know what that could…
Marmoy
  • 8,009
  • 7
  • 46
  • 74
1
vote
0 answers

Curl on Openshift console showing as "Empty reply from server"

The console pods are running but still not able to open the console. Kindly let me know what is missing. [root@api ~]# oc get nodes NAME STATUS ROLES AGE VERSION ocp-cp-1.lab.ocp.lan Ready master,worker 4h59m…
1
vote
0 answers

Openshift console not opening

The console pods are running but still not able to open the console. Kindly let me know what is missing. [root@api ~]# oc get nodes NAME STATUS ROLES AGE VERSION ocp-cp-1.lab.ocp.lan Ready master,worker 4h59m…
1
vote
0 answers

pod not found error, while using the rsync cmd to copy the results from ocp pod to jenkins workspace

I am running some automated tests using RBF, but sometimes when the test runner is complete and am trying to copy the test result from OCP to local using Rsync (using Jenkins job), it shows that the pod is not found, but test cases were run on the…
1
vote
1 answer

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() { # $1: openshift host if ! oc projects >…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
1
vote
2 answers

Getting logs/more information during start-build command execution

Jenkins pipeline is building Docker images. OpenShift plugin(s) are used for the same. An example command: openshift.selector(BUILD_CONFIG_NAME, "${appBcName}").startBuild("--from-dir=${artifactPath}", '--wait','--follow') While this works smoothly…
1
vote
1 answer

Delete all resources via OC CLI with name contain some words

I am looking for a command to delete all resources in openshift, with name contain some words. I found this but NOT specific to mine. POD delete I tried below oc get all -- selector | awk '/^/{system("oc delete all --selector " $1)}' it…
Shabar
  • 2,617
  • 11
  • 57
  • 98
1
vote
0 answers

Is it possible to run `oc cluster up` offline?

I'm trying to run oc cluster up - the Openshift 3.11 development environment - in an offline environment. I have run it previously while online, and so the required images are downloaded. Then I modified these files and…
Magick
  • 4,603
  • 22
  • 66
  • 103
1
vote
1 answer

How to specify/modiy target-port on a newly created app through openshift CLI?

I am trying to expose a new app created via openshift command line(oc). This is a nodeJS server listening on port=3000. However, opeshift defaults the target-port to 8080 as shown in the following service.yaml: kind: Service apiVersion:…
nihal
  • 357
  • 1
  • 3
  • 18
1
vote
1 answer

Openshift CLI: Change .kube folder to different drive

I have Openshift CLI 3.11 installed on my machine, but my .kube folder is present on my H drive(network drive) which is not accessible due to some network problems as I'm away from my office and connected remotely . So whenever I try to login from…
BKK
  • 340
  • 2
  • 4
  • 15
1
vote
1 answer

How to update limits.memory using command line in Openshift?

I would like to update or change memory limit to 90Gi in this spec using command line. spec: hard: limits.cpu: 12500m limits.memory: 80Gi pods: "10" requests.cpu: 12500m requests.memory: 80Gi The current steps are oc edit quota compute-resources,…
Rajiv
  • 41
  • 1
  • 6
1
vote
1 answer

Get names of all deployment configs with no running pods

Is there a simple method (that won't require googling at every use) to get names of all deployment configs with no running pods (scaled to 0) in Kubernetes / Openshift? Methods without JSON tokens and awk please. The docs of oc get dc --help are…
1
vote
0 answers

How to access the Openshift cluster using .kubeconfig file

I have to authenticate the openshift cluster via .kube/config file. For that, I have generated a x509 client certificate and key using OpenSSL.I converted that certificate into .pem format using the following command x509 -in xyz.crt -out xyz.pem…
1
vote
0 answers

Pods not getting ready due to deadlock

I'm using an openshift cluster to deploy my k8s operator. I deployed the operator manually not from the operator hub. I was able to deploy the operator successfully. But when I try to do a deployment through the operator it gives me the following…
1
vote
0 answers

OpenShift, how do I give myself clutser-admin?

I just started using OpenShift and have permissions problems. I am on the free trial for OpenShift 4.3.3 and cannot get my containers to run as root. I am the only user on my instance and I have admin, but it says I need cluster-admin to run the…