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
1
vote
1 answer

OpenShift domain status failing

So I created an account at open shift, created an app, and installed the command line tool. when I do the command rhc domain status it fails: Loaded suite…
asawilliams
  • 2,908
  • 2
  • 30
  • 54
1
vote
2 answers

Error with rhc-create-domain on command line (Openshitft)

First I do not know much about Ruby, but, the Openshit command line uses the 'rhc' to manage my apps on cloud. Nice!...but the 'rhc' program its based on Ruby, Rubygems....something. Ok, i'm installed theses programs with apt-get on Linux Mint…
0
votes
1 answer

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. Download cwRsync for Windows and add it to your…
Giorgi Tsiklauri
  • 9,715
  • 8
  • 45
  • 66
0
votes
1 answer

Wild card in oc command line resource names

Trying to delete all imagestreams which has prefix filebeat:- λ oc delete imagestream 'filebeatbuilder*' which is returning error:- Error from server (NotFound): imagestreams.image.openshift.io "'filebeatbuilder*'" not found Ask is can we have…
KOTIOS
  • 11,177
  • 3
  • 39
  • 66
0
votes
1 answer

How do I index using a jsonpath key containing a string '.'

I am working in OCP trying to access the following information from the yaml output generated by oc get nodes my-node -o yaml using the -o jsonpath {} feature. i.e. The full yaml output apiVersion: v1 kind: Node metadata: annotations: …
0
votes
0 answers

How to fetch Oauth Token for Openshift Server for login

I am trying to fetch the OAuth token from Openshift enterprise Server . I was looking into may reference and found we have to use the below endpoint , /oauth/authorize ,…
Susheel Rao
  • 79
  • 1
  • 7
0
votes
1 answer

How can I port forward in openshift without using oc client . Is there a way we can usejava client to portforward in a pod just like“oc port forward”

I need to access a postgres database from my java code which resides in openshift cluster. I need a way to do so. without initiating port forwarding manually through oc port forward command. I have tried using openshift java client class openshift…
0
votes
1 answer

How to perform autorestart of Pods at scheduled time in openshift

I am having a list of pods running java applications,want to have a schedule restart of pods automatically.How it can be performed.I have tried with having a cron job inside an ocp file but it didn't work. Help me with some suggestions
0
votes
1 answer

Monitoring the progress of specified pods with oc cli

I want to know is there a way to monitor the progress of a particular pod instead of seeing all pods? For example I scale consleapp oc scale dc consleapp --replicas=3 After that command I want to watch the progress of only consoleapp and ensure the…
B.Allen
  • 79
  • 1
  • 7
0
votes
0 answers

Openshift reset `route` config when change branch

I increased the timeout in the Route yaml, but the settings are reset as soon as I change the name of the branch through the UI, not through the yaml configuration. This is the annotation: metadata: annotations: …
0
votes
1 answer

Openshift - Edit secret from cli

For security reasons, I need to renew the password field of a Secret in Openshift every 30 days, so my idea is to create a cronjob and execute a ocp command to remove the password field from that Secret, so after this, the password field is…
Alvaro
  • 57
  • 1
  • 1
  • 7
0
votes
1 answer

how to check if imagestream is existed in openshift container platform with jenkins pipeline

I ran this code to check and delete the imagestreams in Openshift openshift.withCluster("${CLUSTER_NAME}") { openshift.withProject("${DEV_ENV}") { if (openshift.selector('imagestreams',…
0
votes
0 answers

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 getting any errors by yet not being updated. Using Curl…
0
votes
0 answers

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 := manager.Options{Scheme: scheme.Scheme} …
0
votes
0 answers

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/redhat-actions/oc-login#readme - name: Log in…