API version isn't supported error in OpenShift Container Platform

Solution In Progress - Updated -

Issue

  • When I run the oc command, I got API version isn't supported error. For example, scheduled jobs needs batch/v2alpha1, but I got this error:
API version "batch/v2alpha1" in "job.yaml" isn't supported, only supports API versions ["v1" "extensions/v1beta1" "v1beta3"]
  • How can we debug this issue?

Environment

  • OpenShift Container Platform
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.