From 98b1545f3bf3a2d3154c1676114ebf8823a02995 Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Mon, 22 Mar 2021 14:47:57 +1100 Subject: [PATCH 1/2] fix: update readme Change the run `hellonode` command from `kubectl run` to `kubectl create deployment`, otherwise run will create a pod and not a deployment. The alternative would be to change the line `kubectl get deployments` to `kubectl get pods` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38462b3..087c312 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ docker build -t hellonode:v1 . Now we will mount this image : ```bash -kubectl run test-node --image=hellonode:v1 --port=8080 +kubectl create deployment --image=hellonode:v1 --port=8080 ``` you can see it deployed : From d22dd8f0f865a856b20dd9945ca57edf4df2c0fa Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Mon, 22 Mar 2021 14:52:58 +1100 Subject: [PATCH 2/2] feat(minikube): update readme add instructions to tunnel the load balanced service for minikube --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 087c312..4ade410 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,25 @@ Transfer-Encoding: chunked Hello World! ``` +##### Minikube +If you are running minikube, we will need to start a tunnel for the service +```bash +minikube service test-node --url +``` + +You should see output similar to this: +```bash +🏃 Starting tunnel for service test-node. +|-----------|-----------|-------------|------------------------| +| NAMESPACE | NAME | TARGET PORT | URL | +|-----------|-----------|-------------|------------------------| +| default | test-node | | http://127.0.0.1:55049 | +|-----------|-----------|-------------|------------------------| +http://127.0.0.1:55049 +``` + +Open the url in the browser `http://127.0.0.1:55049` + #### Scale With Kubernetes it's easy to scale, we only need one command line :