Kubernetes port forwarding from running Pod to curent machine with kubectl

We will test on previously configured deployment with ConfigMap:

Get current running Pods:

$ kubectl get pods
NAME                             READY   STATUS    RESTARTS   AGE
my-deployment-76f6f96875-w8dw5   1/1     Running   0          3m20s
my-deployment-76f6f96875-x4npq   1/1     Running   0          3m20s
Forward the port:
$ kubectl port-forward my-deployment-76f6f96875-w8dw5 8005:80 &
[1] 1289394
Forwarding from 127.0.0.1:8005 -> 80
Test:
$ curl 127.0.0.1:8005
my-deployment-76f6f96875-w8dw5