OC command is throwing error "Unable to connect to the server: Service Unavailable"

Solution Verified - Updated -

Issue

  • Observed below error while running the oc command on the bastion node:
$ oc get nodes
Unable to connect to the server: Service Unavailable

$ oc get co
Unable to connect to the server: Service Unavailable
  • Cluster login will also not work in case with error "Service Unavailable"
 Kubernetes service is unavailable log level=debug msg="Still waiting for the Kubernetes API: Get"https://api.<cluster_name>.<base_domain>:6443/version\": Service Unavailable"

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