From 270dbcbf3fb77c6a0b12d828cd3bb2cfc552f96e Mon Sep 17 00:00:00 2001 From: Pick1a1username <20301273+Pick1a1username@users.noreply.github.com> Date: Sat, 23 Feb 2019 23:22:11 +0900 Subject: [PATCH] The chapter 'Smoke Test' is updated. --- docs/13-smoke-test.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/13-smoke-test.md b/docs/13-smoke-test.md index f2c392e..8f597d1 100644 --- a/docs/13-smoke-test.md +++ b/docs/13-smoke-test.md @@ -18,7 +18,7 @@ $ kubectl create secret generic kubernetes-the-hard-way \ Print a hexdump of the `kubernetes-the-hard-way` secret stored in etcd: ``` -$ ssh -i ~/.ssh/id_rsa-k8s.pub 10.240.0.21 "sudo ETCDCTL_API=3 etcdctl get \ +$ ssh -t -i ~/.ssh/id_rsa-k8s 10.240.0.11 "sudo ETCDCTL_API=3 etcdctl get \ --endpoints=https://127.0.0.1:2379 \ --cacert=/etc/etcd/ca.pem \ --cert=/etc/etcd/kubernetes.pem \ @@ -179,10 +179,10 @@ $ NODE_PORT=$(kubectl get svc nginx \ --output=jsonpath='{range .spec.ports[0]}{.nodePort}') ``` -Retrieve the IP address of a worker instance: +Retrieve the IP address of the worker node: ``` -$ 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: