OC command is throwing error "Unable to connect to the server: Service Unavailable"
Issue
- Observed below error while running the
occommand 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.