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

add replication #52

Merged
merged 2 commits into from
May 9, 2022
Merged

Conversation

salehsedghpour
Copy link
Collaborator

Adding the replication factor for each service which could be specified by the user in each cluster.
For instance, if the user specifies:

...
"services": [
    {
      "name": "service1",
      "clusters": [
        {
          "cluster": "cluster-1",
          "replicas": 2,
          "namespace": "default",
          "node": "node-1"
        }
      ],
...

After generating such the yaml files and deploying them to the cluster, we will have:

 % kubectl get pods         
NAME                                         READY   STATUS    RESTARTS        AGE
service1-75576df8cd-6djv8   2/2          Running   0                         3m27s
service1-75576df8cd-kswrq   2/2.        Running   0                         3m27s

It closes #46 .

@salehsedghpour salehsedghpour requested a review from alekodu May 9, 2022 09:26
@alekodu alekodu merged commit 26050c2 into EricssonResearch:main May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support single-cluster replicas
2 participants