We have a containerised Cloud IDE (Theia NodeJs Express App).
We have a containerised Landing Page (NodeJS Express App) which upon logging in spins up a Cloud IDE Container for the user , and redirects it to the Cloud IDE Container which is now running.
User Work File Persistence is done via a mounted file system
I currently do this via Docker Engine API and it works.
Now how do we integrate this into Kubernetes world which is being introduced into the ecosystem in parallel to my work. I assume the Landing Page App is a pod which can be scaled if necessary. The Cloud IDE app is a bit confusing, because you really want a user to stick the the same container running on a node, until the container dies/expires/sleeps after not being used for a while.
Also , how should the Landing Page App manage creating a pod for a user. Should it just use the Kubernetes API or Rancher API, or is there some better way of orchestrating this.
Would greatly appreciate input from experienced people.
Thanks in advance