How to get endpoints inside the pod
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.