Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gurghet/port-forceward
Simple app to force kubectl port-forward
https://github.com/gurghet/port-forceward
Last synced: 9 days ago
JSON representation
Simple app to force kubectl port-forward
- Host: GitHub
- URL: https://github.com/gurghet/port-forceward
- Owner: gurghet
- Created: 2023-09-17T13:38:56.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-20T08:14:10.000Z (about 1 year ago)
- Last Synced: 2023-09-20T19:33:03.238Z (about 1 year ago)
- Language: Scala
- Size: 428 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# port-forceward
Simple app to force kubectl port-forward.
It will try to `kubectl port-forward` until it succeeds.
It does not have autocompletion but it will try to suggest how to find the resource you were looking for.# Usage
Download the [port-forceward](https://github.com/gurghet/port-forceward/releases/download/1.2.0/port-forceward) java autolauncher and give it execution permissions. Then type
```
./port-forceward --help
```
You will get this output
```
__ ____ __
____ ____ _____/ /_ / __/___ _____________ _ ______ __________/ /
/ __ \/ __ \/ ___/ __/_____/ /_/ __ \/ ___/ ___/ _ \ | /| / / __ `/ ___/ __ /
/ /_/ / /_/ / / / /_/_____/ __/ /_/ / / / /__/ __/ |/ |/ / /_/ / / / /_/ /
/ .___/\____/_/ \__/ /_/ \____/_/ \___/\___/|__/|__/\__,_/_/ \__,_/
/_/port-forceward v0.1.0 -- A forceful port forwarder for kubectl
USAGE
$ forceward [(-t, --resource-type, --type text)] (-r, --resource-name, --res, --resource text) (-p, --ports, --port text) [--kubeconfig text]
OPTIONS
(-t, --resource-type, --type text)
A user-defined piece of text.The resource type to forward
This setting is optional. Default: 'pod'.
(-r, --resource-name, --res, --resource text)
A user-defined piece of text.The resource name to forward
(-p, --ports, --port text)
A user-defined piece of text.The ports to forward
--kubeconfig text
A user-defined piece of text.The path to the kubeconfig file
This setting is optional. Default: 'None'.
```
For example:
```
./port-forceward -t svc -r kafka-ui -p 3001:80 --kubeconfig /Users/gurghet/Downloads/myCluster.yaml
```