Client sent an HTTP request to an HTTPS server Client sent an HTTP request to an HTTPS server kubernetes kubernetes

Client sent an HTTP request to an HTTPS server


It seems network problem. I faced smiler problem to connect with MongoDB because of Proxy. Everything may occur this problem.

By default, each container run by Docker has its own network namespace.

Offering Some Solution Methods:

  1. traceroute <cluster-ip> perform this command and check whether arrive to cluster inside of container attach container and perform the command docker exec -it container /bin/bash.
  2. Check Proxy. export check environment variables related with proxy.
  3. curl www.google.com
  4. Try to connect another things in the cluster. For example MySQL, etc. (Once time a machine write me blacklist automatically I tried to solve connection problem 2 day)
  5. Try to use python-slim image. slim image is based from ubuntu.

It is very good document to understand and solve docker connection problem.

https://pythonspeed.com/articles/docker-connection-refused/