cloudflare / cloudflare/cloudflared
kubectl tunnel not working
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I've been trying to setup an Argo tunnel for exposing my Kube API but apparently, the socks5 solution is not working out for me.
This is the command I run on my kube host (origin):
```
cloudflared tunnel --hostname k8s.my-domain.com --url tcp://127.0.0.1:6443 --socks5=true
```
It runs fine. This is what I run in the client:
```
cloudflared access tcp --hostname k8s.my-domain.com --url 127.0.0.1:1234
```
Then, when I try to run `kubectl` with the SOCKS5 proxy in the client, this is what I get in the origin logs:
```
2021-03-14T19:01:53Z ERR 127.0.0.1:6443 is not a http service
2021-03-14T19:01:53Z ERR CF-RAY: 62ffc0d37f87d45f-HAM Proxying to ingress 0 error: Not a http service
```
A curl/kubectl to `127.0.0.1:6443` from within the origin works perfectly fine.
I'm using k3s with kubectl v.1.15.5.
I've set all possible log levels to debug but couldn't find any meaningful information.
Thanks for any help!
Contributor guide
Assessment
This issue has not been assessed yet.