diff --git a/net-forward/kubectl-net_forward b/net-forward/kubectl-net_forward index 5f92a64..fdd17fa 100755 --- a/net-forward/kubectl-net_forward +++ b/net-forward/kubectl-net_forward @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# author: AntiTree function description() { echo -e "\nDescription:\n This plugin allows you to forward to adjacent network services exposed within the cluster. \ diff --git a/net-forward/net-forward.yaml b/net-forward/net-forward.yaml index 1c76c06..19619a1 100644 --- a/net-forward/net-forward.yaml +++ b/net-forward/net-forward.yaml @@ -16,23 +16,26 @@ kind: Plugin metadata: name: net-forward spec: - version: "v0.1" # required, must be in semver format, prefixed with "v" + version: "v1.0.2" # required, must be in semver format, prefixed with "v" platforms: # specify installation script for linux - selector: # a regular Kubernetes selector matchLabels: os: linux # url for downloading the package archive: - uri: https://github.com/antitree/krew-tools/releases/v0.1.tar.gz + uri: https://github.com/antitree/krew-tools/releases/net-forward_v1.0.2.tar.gz # sha256sum of the above archive file: sha256: "a1823b86eedea966e6673ee7377f69a1d65d12712a530759f6db4c6c0bdb08a7" # copy the used files out of the zip archive, defaults to `[{from: "*", to: "."}]` + files: + - from: "/*/net_forward/*" + to: "." bin: "kubectl-net_forward" # path to the plugin executable after copying files above shortDescription: "Setup a true forwarder from your local machine to any TCP service accessible from within the cluster." homepage: https://github.com/antitree/krew-tools # (optional) use caveats field to show post-installation recommendations caveats: | - This plugin needs alpine:socat available to the node: + This plugin needs the alpine:socat image available to the node: description: | # should print nicely on standard 80 char wide terminals Deploy a socat listener that allows you to forward to any IP/Port that's accessible in the cluster. Similar to `kubectl port-forward` but without @@ -41,4 +44,4 @@ spec: Examples: kubectl net-forward kubectl net-forward -i kubernetes.default -p 443 - kubectl net-forward -n testnamespace -i 10.24.0.1 -p 443 -l 9999 \ No newline at end of file + kubectl net-forward -n testnamespace -i 10.24.0.1 -p 443 -l 9999