java icon indicating copy to clipboard operation
java copied to clipboard

How can I configure the docker container inorder to be able to use the API ?

Open smaillns opened this issue 7 years ago • 3 comments

How can we solve the problem in case of Pod that carry a container which use the k8s Client API ?

java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8080 at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:143) ~[okhttp-2.7.5.jar!/:na]

smaillns avatar Jul 28 '19 18:07 smaillns

the error is suggesting that you didn't set configuration for the client object so it's by default connecting 127.0.0.1:8080. consider refer to the Configuration section of the example list.

yue9944882 avatar Jul 29 '19 05:07 yue9944882

closing this as question is answered.

brendandburns avatar Jul 30 '19 16:07 brendandburns

@

closing this as question is answered.

@brendandburns Whay did you close the issue ?! I know that it's a configuration issue, but I still don't find a solution for Docker containers

smaillns avatar Aug 08 '19 13:08 smaillns