The downloaded oc binary's version doesn't match the server version

Solution Verified - Updated -

Issue

  • In every OpenShift cluster, there is a URL to download the command line tools, like https://downloads-openshift-console.apps.cluster.domain.tld/command-line-tools, for several different operating systems.
  • The version of the tools downloaded there does not match the cluster version.
  • For example, for a 4.4.15 cluster:

    $ curl -k https://downloads-openshift-console.apps.cluster.domain.tld/amd64/linux/oc.tar | tar xf - 
    $ ./oc version
    Client Version: openshift-clients-4.4.0-202006211643.p0-2-gd89e458c3
    Server Version: 4.4.15
    Kubernetes Version: v1.17.1+3288478
    

Environment

  • Red Hat OpenShift Container Platform
    • 4

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