Error when scaling with OpenShift client

Solution Verified - Updated -

Issue

  • Scaling a deployment causes the following error:

    # oc scale dc schema-spy --replicas=0
    error: Scaling the resource failed with: the API version in the data (extensions/v1beta1) does not match the expected API version (apps.openshift.io/v1); Current resource version Unknown
    

Environment

  • OpenShift client version 3.7.42 or later
  • OpenShift cluster version 3.7.23 or earlier

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content