renoki-co/php-k8s

[enhancement] exec shell in pod and interact with it

Wouter0100 opened this issue ยท 6 comments

I'd love to integrate php-k8s in a Symfony CLI and automatically exec within a pod with bash and interact with bash.

Currently there seems no way to accomplish this, as the websocket is automatically closed by php-k8s.

I suppose this should work only for terminal-based apps written in PHP? ๐Ÿ˜…

Yeps :). Or, perhaps, a PHP application that serves a websocket and is able to proxy it?

I think it would work better with Socket.IO and a native Node.js application. I mean it's possible to do that in PHP, but it would break the use case of PHP. ๐Ÿ˜ฌ

Depends on the use case, we've made quite a lot of CLI apps in PHP which could benefit from this and I also see a lot more PHP websocket apps popping up :).

PHP ain't the old stateless language anymore.

I think it's worth giving a shot. ๐Ÿค”

stale commented

This issue has been automatically closed because it has not had any recent activity. ๐Ÿ˜จ