snowjs / cli

CLI tool for dead-simple serverless Docker deployments on managed Kubernetes services. A self-hosted PaaS. ⚡️
https://github.com/snowjs/cli/tree/secrets
MIT License
409 stars 10 forks source link

[Architecture] Use a server client model #19

Open sean-nicholas opened 5 years ago

sean-nicholas commented 5 years ago

First things first: Just brainstorming here ;)

I looked into exoframe as an alternative to now.sh. They use a server client architecture. The CLI is a client connecting to the server which does the deployment etc. I like this idea because you cloud write a webUI which uses the same REST API and could easy scale up / down your deployments, etc. from your mobile.

Do you think it is possible to have something like this in snow? Maybe you use the cli to create the initial cluster & deploy the snow server into it. Later the cli talks only to the server which does the heavy lifting.

I have no idea if this works with kubernetes, but wanted to share my thoughts :)

petermikitsh commented 5 years ago

Client-server model

Before I began working on snow, I did my best to research alternatives. I, too, came across exoframe.

The benefits of a client-server model look appealing: instead of needing this basket of installed system dependencies, you instruct the server via REST endpoints to create deployments, update deployments, etc. If we were to explore such an approach, you'd still need kubectl on your system to initially authenticate to install the server component.

I considered this, but for an 0.x release, I wouldn't have the bandwidth to deliver it.

Dashboard

Kubernetes ships a feature called the Web UI (Dashboard): https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/

Takeways

A better ecosystem surrounding snow would facilitate ease-of-use.

Taken to the next level:

sean-nicholas commented 5 years ago

Great roadmap :) I totally understand that this is to much for a 0.x release.

I am happy to help in building such thinks. Unfortunately, I have no clue about kubernetes. If there is anything besides that, let me know how to help.