-
Notifications
You must be signed in to change notification settings - Fork 4
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
exec doesn't work - times out #2
Comments
I've tried this on both windows and linux and haven't found any issues with it timing out. I did however find an issue related to the shorthand flag for the ziti configuration file. There are several kubectl commands where the -c flag was already in use, which caused the exec to not work properly when attempting to pass in the configuration file via cli args. Here's the link the the most recent binaries, when you have a chance can you give it a shot and see if you can replicate the issue you faced earlier? https://github.com/openziti-incubator/kubectl/releases/tag/fix%2Fziti-flags |
Hi Nic: Here is the timeout I see with the latest release: C:\Users\codeweaver\Downloads>kubectl-windows-amd64 --zConfig kubctl.json --service kubctl1 exec --stdin --tty ziti-host-f5f89b5-z485m -- sh |
From what I can see, the exec command initiates another rest client (i.e. 2 sessions are seen, one goes through the ziti network and the second one it does not) , which is not zitified and tries to access the API directly using the API DNS name. It looks like we would need to pass the same wrapper function to that client as well. |
I tried to play with this a bit, not sure if it is right path, but here you go. Just incase someone wants to take a stab.
|
Tried to pass the kubeConfigFlags like this. It compiles but exec command it is not picking up the wrapper function
|
using something like this succeeds with the 'regular' kubectl but fails with kubeztl:
The text was updated successfully, but these errors were encountered: