Skip to content

Commit

Permalink
cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
antitree committed Jan 17, 2020
1 parent 6dff2f3 commit 9e46d94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions net-forward/kubectl-net_forward
Original file line number Diff line number Diff line change
@@ -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. \
Expand Down
11 changes: 7 additions & 4 deletions net-forward/net-forward.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
kubectl net-forward -n testnamespace -i 10.24.0.1 -p 443 -l 9999

0 comments on commit 9e46d94

Please sign in to comment.