<p>If I forwarded a port using </p>

<pre><code>kubectl port-forward mypod 9000:9000
</code></pre>

<p>How can I undo that so that I can bind port 9000 with another program?<br>
Additionally, how can I test to see what ports are forwarded?</p>

<p>The port is only forwarded while the kubectl process is running, so you can just kill the kubectl process that's forwarding the port. In most cases that'll just mean pressing CTRL+C in the terminal where the port-forward command is running.</p>
