1

Is there a way to idle an OCP service using the Openshift REST API ?

I know, that every oc command that runs from the client hits an api to perform the action requested.

However - I don't see an information about the endpoint to call to idle a service in the Openshift API Documentation.

Any help is truly appreciated.

Gowtham
  • 364
  • 2
  • 5
  • 16
  • 1
    The `oc idle` command actually gets pods for the endpoint, gets to the associated DeploymentConfig via replication controller, stores the scale into annotations and scales it down. You can see the series of associated REST API calls when running the command with high `loglevel` such as `oc idle --loglevel=9`. I'm not aware of a simple "idle" REST API endpoint. – Jiri Fiala Nov 06 '19 at 08:23

0 Answers0