Skip to content

Commit

Permalink
Update k8s201.md
Browse files Browse the repository at this point in the history
Added example of using the exposed host from the a node running Kubernetes. (This works on AWS with Weave; not able to test it on other variations...)
  • Loading branch information
paul-rogers authored Mar 18, 2018
1 parent bcd6bc4 commit 16a7c5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/user-guide/walkthrough/k8s201.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ $ kubectl delete pod busybox # Clean up the pod we created with "kubectl run"
{% endraw %}
```

The service definition [exposed the Nginx Service](/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/) as port 8000 (`$SERVCE_PORT`). We can also access the service from a host running Kubernetes using that port:

```shell
wget -qO- http://$SERVICE_IP:$SERVICE_PORT # Run on a Kubernetes host
```

(This works on AWS with Weave.)

To delete the service by name:

```shell
Expand Down

0 comments on commit 16a7c5d

Please sign in to comment.