Cannot connect to a Mongodb pod in Kubernetes (Connection refused)
问题 I have a few remote virtual machines, on which I want to deploy some Mongodb instances and then make them accessible remotely, but for some reason I can't seem to make this work. These are the steps I took: I started a Kubernetes pod running Mongodb on a remote virtual machine. Then I exposed it through a Kubernetes NodePort service. Then I tried to connect to the Mongodb instance from my laptop, but it didn't work. Here is the command I used to try to connect: $ mongo host:NodePort (by "host