skypilot-org / skypilot

SkyPilot: Run AI and batch jobs on any infra (Kubernetes or 12+ clouds). Get unified execution, cost savings, and high GPU availability via a simple interface.
https://skypilot.readthedocs.io
Apache License 2.0
6.82k stars 513 forks source link

[k8s] Leaked kubectl port-forward processes #4343

Open romilbhardwaj opened 1 week ago

romilbhardwaj commented 1 week ago

I noticed a bunch of kubectl port-forward commands left over on my machine even though I do no have any k8s clusters running:

(base) ➜  ~ ps -ax | grep kubectl
84551 ??         0:09.81 kubectl --context=kind-skypilot --namespace=default port-forward pod/test-2ea4-head :22
28531 ttys001    0:03.67 kubectl --context=kind-skypilot --namespace=default port-forward pod/test-2ea4-head :22
28550 ttys001    0:03.72 kubectl --context=kind-skypilot --namespace=default port-forward pod/test-2ea4-head :22

Same was also reported by user. Perhaps our SSH proxy command is leaking these processes somehow.