Skip to content
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

Kubernetes Login Servers #12

Open
nikhiljha opened this issue Nov 24, 2020 · 6 comments
Open

Kubernetes Login Servers #12

nikhiljha opened this issue Nov 24, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@nikhiljha
Copy link
Member

When you login, connect to one of a few pods (at random?) OR spin up a new pod with your user directory & site directory mounted.

@nikhiljha nikhiljha added the enhancement New feature or request label Nov 24, 2020
@ethanhs
Copy link
Member

ethanhs commented Oct 8, 2021

I suppose we could set up kVDI that is accessible over the web, is that what you have in mind here?

@nikhiljha
Copy link
Member Author

nikhiljha commented Oct 8, 2021

Hmm... I think kVDI is mostly for a desktop interface. I was thinking more ssh.ocf.berkeley.edu is actually not a real host, and when you ssh to that address and authenticate correctly it makes you your own pod with tiny resource limits that terminates when you log out.

@ethanhs
Copy link
Member

ethanhs commented Oct 8, 2021

Yeah that's fair. I'm not aware of any software that provides this functionality though :/

@ethanhs
Copy link
Member

ethanhs commented Oct 11, 2021

I think we could deploy wetty or webssh and have a controller that deploys them on demand perhaps.

@tnthi115
Copy link

tnthi115 commented Oct 23, 2022

I couldn't find any existing technologies that do this, but I have two immediate very rough ideas:

  1. Somehow set up tsunami as a public load balancer, create a Kubernetes LoadBalancer service with tsunami's IP, ensure each Pod has openssh-server installed, and let users ssh normally to tsunami. Reference: https://betterprogramming.pub/how-to-ssh-into-a-kubernetes-pod-from-outside-the-cluster-354b4056c42b
  2. Create scripts to be run automatically after a user logs into tsunami that will connect to an existing pod or spin a new one up. References: https://superuser.com/questions/355029/how-to-automatically-run-commands-on-ssh-login and https://askubuntu.com/questions/397674/run-scripts-automatically-in-server-after-ssh-connection

@kpengboy
Copy link
Member

I should comment that any solution has to support this use case: if a user logs in, starts a background process (e.g. tmux), and logs out, the background process has to survive the logout and upon logging in again they must be returned to the same session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants