-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not connect to k8s websocket deployed in Rancher #851
Comments
To fix the issue, It works for me in my patched version. |
Would you mind opening an issue upstream in |
@jacobtomlinson , I think the simplest way to reproduce the problem is to put k8s API behind the proxy and add an extra path (proxy
|
It looks like $ kubectl proxy --api-prefix=/somepath/
Starting to serve on 127.0.0.1:8001 $ curl localhost:8001/somepath/version
{
"major": "1",
"minor": "29",
"gitVersion": "v1.29.0",
"gitCommit": "3f7a50f38688eb332e2a1b013678c6435d539ae6",
"gitTreeState": "clean",
"buildDate": "2023-12-14T19:18:17Z",
"goVersion": "go1.21.5",
"compiler": "gc",
"platform": "linux/amd64"
} |
While digging into this I've noticed some other strange behaviour when the Kubernetes API is proxied with an extra path. I opened kr8s-org/kr8s#284 to track. |
Describe the issue:
Deploy k8s cluster in a rancher. Try to connect with default settings. You will see:
because Rancher provides the following URL to connect to websockets:
https://rancher.example.com/k8s/clusters/c-m-4wx4gzpx
Minimal Complete Verifiable Example:
TBD
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: