"oc login" unable to reach master API service when fronted by a HAProxy load-balancer

Solution Verified - Updated -


  • Openshift master nodes are fronted by a standalone HAProxy load-balancer (running outside of the Openshift cluster).

  • The following parameters in the Openshift master node configuration file (/etc/origin/master/master-config.yaml) are configured to point to load-balancer URLs:

    masterPublicURL: https://<publicfacing_load-balancer_hostname>:8443
    masterURL: https://<privatefacing_load-balancer_hostname>:8443
  • When trying to login to Openshift cluster, user receives the following error:

    # oc login -u system:admin
    error: EOF


  • Openshift Container Platform 3.x

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