Skip to content

Commit

Permalink
Added helping message to be shown in starting the proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
yokawasa committed Jan 28, 2021
1 parent 6f72080 commit c766d8a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the "kubectl-plugin-socks5-proxy" extension will be documented in this file.

## v1.0.1

- Added helping message to be shown in starting the proxy

## v1.0.0

- Initial release
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.0
v1.0.1
7 changes: 6 additions & 1 deletion kubectl-socks5-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ run_proxy(){
# Install an SOCKS5 proxy server if not yet installed
r=$(kubectl get pod socks5 -n ${namespace} 2>/dev/null | tail -1 | awk '{print $1}') #
if [ "${r}" != "socks5" ];then
echo "Creating Socks5 Proxy (Pod)..."
echo "Creating SOCKS5 Proxy (Pod)..."
cat <<EOF | kubectl apply -n ${namespace} -f -
apiVersion: v1
kind: Pod
Expand Down Expand Up @@ -76,6 +76,11 @@ EOF
done
fi

echo "Starting a local SOCKS5 Proxy (localhost:${port})..."
echo ""
echo "The proxy Pod can be cleaned up with ^C (if not in background),"
echo "or with a command \"kubectl delete pod socks5 -n ${namespace}\""
echo ""
# Setup portforward
kubectl port-forward -n ${namespace} socks5 $port:1080
}
Expand Down

0 comments on commit c766d8a

Please sign in to comment.