Pods can't connect to Elasticsearch service (logging-es) in OpenShift 3.x

Solution Verified - Updated -

Issue

  • Elasticsearch pod is running and working, but fluentd, kibana and curator can't connect to it, showing the errors:

    fluentd:

    [warn]: Could not push logs to Elasticsearch, resetting connection and trying again. No route to host - connect(2) (Errno::EHOSTUNREACH)
    

    curator:

    Was not able to connect to Elasticearch at logging-es:9200 within 60 attempts
    
  • Pods can't connect to a service IP with error No route to host.

Environment

  • Red Hat OpenShift Container Platform (OCP) 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