|
@@ -21,6 +21,27 @@ Once you have your swarm, in this directory run:
|
|
|
docker stack deploy --compose-file docker-stack.yml vote
|
|
|
```
|
|
|
|
|
|
+Run the app in Kubernetes
|
|
|
+-------------------------
|
|
|
+
|
|
|
+The folder k8s-specifications contains the yaml specifications of the Voting App's services.
|
|
|
+
|
|
|
+Run the following command to create the deployments and services objects:
|
|
|
+```
|
|
|
+$ kubectl create -f k8s-specifications/
|
|
|
+deployment "db" created
|
|
|
+service "db" created
|
|
|
+deployment "redis" created
|
|
|
+service "redis" created
|
|
|
+deployment "result" created
|
|
|
+service "result" created
|
|
|
+deployment "vote" created
|
|
|
+service "vote" created
|
|
|
+deployment "worker" created
|
|
|
+```
|
|
|
+
|
|
|
+The vote interface is then available on port 31000 on each host of the cluster, the result one is available on port 31001.
|
|
|
+
|
|
|
Architecture
|
|
|
-----
|
|
|
|
|
@@ -36,4 +57,4 @@ Architecture
|
|
|
Note
|
|
|
----
|
|
|
|
|
|
-The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client.
|
|
|
+The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client.
|