From 6fb446b90072c658aebabd0c855ffe2b98d60c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Tue, 30 Nov 2021 10:47:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Improve=20explanations=20of=20th?= =?UTF-8?q?e=20Dockercoins=20exercise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slides/exercises/k8sfundamentals-details.md | 30 ++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/slides/exercises/k8sfundamentals-details.md b/slides/exercises/k8sfundamentals-details.md index 36772725..2cb122f8 100644 --- a/slides/exercises/k8sfundamentals-details.md +++ b/slides/exercises/k8sfundamentals-details.md @@ -8,25 +8,37 @@ - We'll use one Deployment for each component - (see next slide for the images to use) + (created with `kubectl create deployment`) - We'll connect them with Services -- We'll check that we can access the web UI in a browser + (create with `kubectl expose`) --- ## Images -- hasher → `dockercoins/hasher:v0.1` +- We'll use the following images: -- redis → `redis` + - hasher → `dockercoins/hasher:v0.1` -- rng → `dockercoins/rng:v0.1` + - redis → `redis` -- webui → `dockercoins/webui:v0.1` + - rng → `dockercoins/rng:v0.1` -- worker → `dockercoins/worker:v0.1` + - webui → `dockercoins/webui:v0.1` + + - worker → `dockercoins/worker:v0.1` + +- All services should be internal services, except the web UI + + (since we want to be able to connect to the web UI from outside) + +--- + +class: pic + +![Dockercoins architecture diagram](images/dockercoins-diagram.png) --- @@ -34,7 +46,7 @@ - We should be able to see the web UI in our browser - (with the graph showing approximatiely 3-4 hashes/second) + (with the graph showing approximately 3-4 hashes/second) --- @@ -44,4 +56,4 @@ (check the logs of the worker; they indicate the port numbers) -- The web UI can be exposed with a NodePort Service +- The web UI can be exposed with a NodePort or LoadBalancer Service