howardjohn / kubectl-port_forward_run

`kubectl port-forward-run` is a plugin to help execute a command with a port-forward established.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubectl port-forward-run

kubectl port-forward-run is a plugin to help execute a command with a port-forward established.

Install

go install github.com/howardjohn/kubectl-port_forward_run@latest

Usage

Example output:

$ kubectl port-forward-run pod/some-pod 80 -- curl localhost:{}

This will port-forward to some-pod on port 80 and execute the curl command. The {} will be replaced with the automatically assigned local port.

About

`kubectl port-forward-run` is a plugin to help execute a command with a port-forward established.

License:Apache License 2.0


Languages

Language:Go 94.1%Language:Makefile 5.9%