You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Yaroslav <ya...@quali.com.INVALID> on 2020/08/18 21:22:27 UTC

Connect to kubernetes pods using exec

Hi there,

We are using guacamole for connecting to kubernetes pods from inside a
cluster.
It is attaching to a running application, if it is not a shell, and you
cannot see a command prompt. Correct me if I am wrong.

When guacd initiate a session it send a request using "attach" call, like
"/api/v1/namespaces/test/pods/test-pod/attach?stdin=true&stdout=true&tty=true". 

There is another way to initiate a session, using call "exec" with parameter
"command",
"/api/v1/namespaces/test/pods/test-pod/exec?command=/bin/sh&stdin=true&stdout=true&tty=true".

This is important for us and I think it could be a useful feature and would
be great to add this to a codebase.

I have played with guacamole-server and added a simple implementation for
both calls, attach/exec. 
I can share the implementation, how can I do that?

Thanks.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: Connect to kubernetes pods using exec

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Aug 18, 2020 at 5:22 PM Yaroslav <ya...@quali.com.invalid>
wrote:

> Hi there,
>
> We are using guacamole for connecting to kubernetes pods from inside a
> cluster.
> It is attaching to a running application, if it is not a shell, and you
> cannot see a command prompt. Correct me if I am wrong.
>
> When guacd initiate a session it send a request using "attach" call, like
> "/api/v1/namespaces/test/pods/test-pod/attach?stdin=true&stdout=true&tty=true".
>
>
> There is another way to initiate a session, using call "exec" with
> parameter
> "command",
>
> "/api/v1/namespaces/test/pods/test-pod/exec?command=/bin/sh&stdin=true&stdout=true&tty=true".
>
> This is important for us and I think it could be a useful feature and would
> be great to add this to a codebase.
>
> I have played with guacamole-server and added a simple implementation for
> both calls, attach/exec.
> I can share the implementation, how can I do that?
>
>
Cool!  The correct process to contribute this is:
1) Create a JIRA issue for this feature that you want to add.
2) Submit a pull request, with the JIRA issue as a tag at the beginning of
both the pull request title and any commit messages.

We'll review the pull request, possibly ask for changes to it, and then
merge it when it looks good.  Please make sure that the style of your
contributions is consistent with existing style of code and the guidelines
for the project:

http://guacamole.apache.org/open-source/

-Nick