From 6cccddc68f0897d5db3951c605e213609f25a1f1 Mon Sep 17 00:00:00 2001 From: Pick1a1username <20301273+Pick1a1username@users.noreply.github.com> Date: Sun, 17 Feb 2019 19:13:13 +0900 Subject: [PATCH] The chapter 'Smoke Test' is updated. --- docs/13-smoke-test.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/13-smoke-test.md b/docs/13-smoke-test.md index 69cbd16..f2c392e 100644 --- a/docs/13-smoke-test.md +++ b/docs/13-smoke-test.md @@ -1,6 +1,8 @@ # Smoke Test -In this lab you will complete a series of tasks to ensure your Kubernetes cluster is functioning correctly. +In this chapter, you will complete a series of tasks to ensure your Kubernetes cluster is functioning correctly. + +**All procedures in this chapter should be done in `client-1` unless an target virtual machines is specified.** ## Data Encryption @@ -180,13 +182,13 @@ $ NODE_PORT=$(kubectl get svc nginx \ Retrieve the IP address of a worker instance: ``` -WORKER_IP=$ kubectl get nodes $(kubectl get pods -o wide | grep nginx | awk '{ print $7 }') -o wide | tail -1 | awk '{ print $6 }' +$ WORKER_IP=$ kubectl get nodes $(kubectl get pods -o wide | grep nginx | awk '{ print $7 }') -o wide | tail -1 | awk '{ print $6 }' ``` Make an HTTP request using the IP address and the `nginx` node port: ``` -curl -I http://${WORKER_IP}:${NODE_PORT} +$ curl -I http://${WORKER_IP}:${NODE_PORT} ``` > output @@ -252,7 +254,7 @@ $ INSTANCE_IP_ADDRESS=$(kubectl get nodes ${INSTANCE_NAME} -o wide | tail -1 | a SSH into the worker node: ``` -$ ssh -i ~/.ssh/id_rsa-k8s.pub ${INSTANCE_IP_ADDRESS} +$ ssh -i ~/.ssh/id_rsa-k8s ${INSTANCE_IP_ADDRESS} ``` List the containers running under gVisor: