Kind: Port-forward problem

Created on 26 Sep 2019  路  4Comments  路  Source: kubernetes-sigs/kind


Im trying to port-forward my pod

kubectl port-forward camunda-79bddd6df4-ft5jx -n dev-201902 5010:6000

But when trying to access in localhost it throws,

E0926 10:48:40.346646 76692 portforward.go:331] an error occurred forwarding 5010 -> 6000: error forwarding port 6000 to pod 972bb77690ac0b73273e3fb10b8ee0d6f723737f58e4157c48eccfbfd1bdb8bf, uid : failed to execute portforward in network namespace "/var/run/netns/cni-ae95d4df-5e26-da3c-10b5-621ed7c56627": socat command returns error: exit status 1, stderr: "2019/09/26 05:18:40 socat[96552] E connect(5, AF=2 127.0.0.1:6000, 16): Connection refused\n"

Expected Result:To access my pod in localhost.

kinsupport

Most helpful comment

@mithunvikram that error typically happens when the pod doesn't have anything listen on that port.

Can you check that the pod camunda-79bddd6df4-ft5jx has something listening on port 6000?

All 4 comments

@mithunvikram that error typically happens when the pod doesn't have anything listen on that port.

Can you check that the pod camunda-79bddd6df4-ft5jx has something listening on port 6000?

Hey @aojea .Yes.I found out.Thanks.

@mithunvikram that error typically happens when the pod doesn't have anything listen on that port.

Can you check that the pod camunda-79bddd6df4-ft5jx has something listening on port 6000?

thanks :)

Thanks, issue was in the Dockerfile

Was this page helpful?
0 / 5 - 0 ratings