How to get endpoints inside the pod

Solution Verified - Updated -

Issue

  • Below error is seen when getting endpoints inside the pod :
WARN  11:27:17 Request to kubernetes apiserver failed
java.io.IOException: Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/default/endpoints/cassandra
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1627) ~[na:1.7.0_79]
  • How to avoid forbidden error when getting endpoints.

Environment

  • Openshift Enterprise
    • 3.0.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