I have a local Kubernetes Running on Windows using Docker. In My Windows Host I am running a Process on Port 4000.
Inside my POD I am doing curl windows_host_ip:4000 But not able to get the response. Connection from POD is being established but the response is giving timeout. Logs
- Hostname was NOT found in DNS cache
- Trying 192.168.18.10...
- connect to 192.168.18.10 port 4000 failed: Connection refused
- Failed to connect to 192.168.18.10 port 4000: Connection refused
- Closing connection 0 curl: (7) Failed to connect to 192.168.18.10 port 4000: Connection refused root@ordermanagement-64694dd8b8-2ktm8:/apps/ordermanagement# curl -v http://192.168.18.10:4000/ordermanagement/order/orders
- Hostname was NOT found in DNS cache
- Trying 192.168.18.10...
- Connected to 192.168.18.10 (192.168.18.10) port 4000 (#0)
GET /ordermanagement/order/orders HTTP/1.1 User-Agent: curl/7.38.0 Host: 192.168.18.10:4000 Accept: /
- Recv failure: Connection reset by peer
- Closing connection 0 curl: (56) Recv failure: Connection reset by peer
Please let me know how can I allow incoming traffic to my POD from my Host System