Connection reset from the application deployed in Kubernetes

11/22/2019

We have a docker image created for a go server. This works perfectly in local environment. By local environment I mean we start the docker image in our servers without kubernetes and it works as expected. But when we deployed it in kubernetes we get connection reset. So we did below to try to narrow down the issue and didn't help. We are using a local kubernetes installation and version is 1.16.

  • Logged in to the container created in kubernetes and executed the request pointing to the localhost and got the same result.
  • Then we started the image inside our kubernetes worker nodes (we have two worker nodes and tried in both) without kubernetes just executing the docker run and those images were working.

So conclusion is that only inside the kubernetes we get the issue. We have two applications which we deployed in kubernetes and one works perfectly and the other is giving the issue. Both the dockerfiles are practically same. We are now running out of ideas and trying to figure out whats going wrong here. Any help would be appreciated.

Thanks

-- Danushka
docker
go
kubernetes

0 Answers