From ff705fb5fefe46575e293e771bb69100cd154b2b Mon Sep 17 00:00:00 2001 From: m Date: Tue, 1 May 2018 14:02:16 +0200 Subject: [PATCH] Exiting the container falls back to localhost `kubectl exec -it` starts an interactive session with the container. Exiting the container (` root@helloworld-...:/app/src# exit`) will throw the user out of the session to the computer kubectl was executed on. Running `hostname -i` afterwards therefore does not show the node's IP. It shows the IP of the computer kubectl was run on. Removed the lines to not cause confusion. --- exercise-2/optional.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/exercise-2/optional.md b/exercise-2/optional.md index 9369917..5485629 100644 --- a/exercise-2/optional.md +++ b/exercise-2/optional.md @@ -26,8 +26,6 @@ root@helloworld-...:/app/src# hostname -i root@helloworld-...:/app/src# exit -root@helloworld-...:/data# hostname -i -10.104.1.5 ``` #### [Continue to Exercise 3 - Creating a Kubernetes Service](../exercise-3/README.md)