Open mjseid opened 2 years ago
Do you see this same error if you try and exec into a pod using lens to a different cluster?
Are you able to run the kubectl exec ...
command from above in a shell yourself? Does it work?
Yes, I get the error any pod in any cluster.
If I take the command from the lens terminal, copy and past into a gitbash terminal it works fine. Any other troubleshooting steps I can do?
me too
i import my clusters to Rancher 2.6 my example config:
apiVersion: v1
kind: Config
clusters:
- name: "ams-do"
cluster:
server: "https://domain.ru/k8s/clusters/c-m-12345"
users:
- name: "ams-do"
user:
token: "kubeconfig-user-tokenj"
contexts:
- name: "ams-do"
context:
user: "ams-do"
cluster: "ams-do"
current-context: "ams-do"
from command line (iTerm + zsh) - all is OK.
but from Lens:
exec kubectl exec -i -t -n kafka kafka-kafka-0 -c kafka -- sh -c "clear; (bash || ash || sh)"
error:
error: unable to upgrade connection: error dialing backend: read tcp 192.168.9.64:49347-><my-lb-from-rancher>:443: read: operation timed out
no proxies in my configs
if i set config from cluster without Rancer - all ok. whats wrong ?
Getting a similar issue on Linux
Describe the bug Pod Shell and attach to pod not working. They give the error:
I am able to connect, edit and save pod configs, and view pod logs. But the exec functionality doesn't work.
To Reproduce Steps to reproduce the behavior:
Expected behavior It is expected that a session is opened to the pod via the kubectl proxy
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Logs: When you run the application executable from command line you will see some logging output. Please paste them here:
Kubeconfig: Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.
Additional context I can curl the kubectl proxy process by using a new terminal on my machine.
but the same curl from the terminal in lens fails: