kubectl-link is a kubectl plugin that allows you to access your pods and services without vpn or manually setting up port forwarding.
- It creates a tun device on your machine to route traffic to your kubernetes cluster with automatically setting port forwarding based your network connections.
- !! It's still new and experimental. Please use it with caution.
- !! Works only on MacOS for now.
Screen.Recording.2024-09-14.at.01.37.45.mov
- Install krew (https://krew.sigs.k8s.io/docs/user-guide/setup/install/)
kubectl krew install link
go install github.com/umutbasal/kubectl-link@latest
sudo kubectl link
curl http://nginx.default.svc.cluster.local
curl http://172.17.1.1
- https://github.com/xjasonlyu/tun2socks
- https://github.com/google/gvisor
- https://git.zx2c4.com/wireguard-go
- Dns proxy server start problem udp 53 already used.
- This is known isse for macs if you have a local dns server like
mDNSResponder
or using vpn clients like Cloudflare Warp. - You can try to solve by stopping
docker daemon
, orvirtual machine managers
or disablingInternet Sharing
feature for macbooks. - Reference: https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/troubleshooting/client-errors/#cf_dns_proxy_failure
- This is known isse for macs if you have a local dns server like