-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed as not planned
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Description
I would like to be able to spin up multiple port forwards at the same time if possible. E.g. Using the kubectl CLI command form of kubectl --context <some-context> port-forward -n <some-namespace> <some-pod> <local-port>:<remote-port>
kubectl --context cluster-1 port-forward -n n1 pod 9200:9200 &
kubectl --context cluster-2 port-forward -n n1 pod 9100:9200 &Currently I do not see a way of doing this AFAIK.
I get an error that the PORTS must be the same when creating the port forwarded socket.
pf = portforward(
dispatch["k8s"].connect_get_namespaced_pod_portforward,
"...",
"...",
_request_timeout=60,
ports="some-remote-port",
)
return pf.socket(some-local-port)Am I missing something?
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.