feat(glsh): use SOCKS5 proxy for kube command
What
- Drop
sshuttle
dependecy. - Use
SOCKS5
Proxy to access the Kubernetes API as shown in https://kubernetes.io/docs/tasks/extend-kubernetes/socks5-proxy-access-api/. - Require kubectl
1.24.0
or higher.
Why
In Kubernetes 1.24.0 SOCKS5
proxy have moved to stable, and also alows
user to use kubectl exec
using SOCKS5
. We get better performance out
of this and also one less tool to depend on.
Testing
glsh kube setup
glsh kube use-cluster gstg
glsh: kubectl 1.24 or higher is required
glsh kube use-cluster gstg
...