-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
RFC: Cargo replication #132
Comments
Just to be clear: when you say
etc., do you mean to run, e.g., With https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ I'm asking, because I'm very interested in using such a project |
Nanocl is already thinked to be able to group nodes, so you could choose in what group of node you will run your workload and in this case it will be equal to X statically.
In this particular case it will be like just the number of instances without state, e.g. a normal deployment. Im thinking to do a separate program for horizontal autoscaler with his own yaml format. Also adding something like Overall this is still being brainstormed and it's not implemented yet. |
I see, so
I think there should be a default one, batteries included. Or multiple options to choose from. Like having a list of pre-loaded strategies/policies and some user defined/coded policies to choose from. One may need different policies depending on the type of service. |
Like for the proxy and the dns it will be included by default, but i like to keep things plug and play, so if you want to rewrite your own it's a possibility, for example if you wanna use traefik as a proxy instead of nginx that's possible. Any tought on what the yaml could look like for the replication ? |
I don't know the structure behind The underlying idea is to make transitioning from |
That's definitly a possibility, the main reason why we don't follow the same spec for most of k8s objects it's that it would have been less creative to just copy everything, and im my opinion our spec is simpler to use, currently you write less yaml to expose a service then k8s, but there is some concept that could be integrated and that are already similar, eg: jobs, secrets. If you are familiar with docker, we currently have the exact same spec as their api to create cargoes and jobs, with some additions. Having a tools to convert K8s yaml format to nanocl file format is definitly something planned in the future, we have already done that for docker-compose files with c2ncl. As it allow easier migrations. The replication feature is the next big things to integrate right now, so i'll update the issue with what i think could be nice to have as yaml format. |
Could be nice to brainstorm about how we can define a cargo replication.
We should be able to :
x
defined instances in all nodex
defined instances in targeted nodesx
defined instances in one nodeWhat else we should be able to do ?
And how we define the data ?
Example of the enum that came in my mind:
The text was updated successfully, but these errors were encountered: