omrikiei / ktunnel

A cli that exposes your local resources to kubernetes
GNU General Public License v3.0
975 stars 75 forks source link

Error upgrading connection #39

Closed antonijakubiak-samsung closed 3 years ago

antonijakubiak-samsung commented 3 years ago
antek@vps3:~/Downloads$ ./ktunnel expose -v test2 4444
INFO[0000] Exposed service's cluster ip is: 10.100.17.49 
INFO[0000] waiting for deployment to be ready           
INFO[0012] Waiting for port forward to finish           
ERRO[0013] error upgrading connection:                  

^CINFO[0024] Got exit signal, closing client tunnels and removing k8s objects 
INFO[0024] Deleting service test2                       
INFO[0024] Deleting deployment test2         
omrikiei commented 3 years ago

hey @antonijakubiak-samsung, which version of ktunnel are you using, and which version of kubernetes are you working with?

antonijakubiak-samsung commented 3 years ago

Hi, I am using latest version of kubectl. It works fine with kubernetes server 1.18, but not works with 1.20.

antek@vps3:/tmp$ ~/Downloads/ktunnel version
1.3.4
# NOT works
antek@vps3:/tmp$ kubectl version 
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-20T02:22:41Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:20:00Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
# works fine
antek@vps3:/tmp$ KUBECONFIG=~/.kube/config-ok kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-20T02:22:41Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"9f2892aab98fe339f3bd70e3c470144299398ace", GitTreeState:"clean", BuildDate:"2020-08-13T16:04:18Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
omrikiei commented 3 years ago

a fix is on the way! :)

omrikiei commented 3 years ago

@antonijakubiak-samsung could you please check if this is sorted out in v1.3.5? Thank you!

antonijakubiak-samsung commented 3 years ago

Thank you for updating the dependencies. It works fine now.

omrikiei commented 3 years ago

actually there was a bug :) awesome, closing the issue!