Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve host aliases page #5443

Merged
merged 3 commits into from
Sep 15, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix confusion code block
  • Loading branch information
kairen committed Sep 13, 2017
commit abc3dd2ba7f165968f57039ae8b04759b56c5cdc
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ Modification not using HostAliases is not suggested because the file is managed
## Default Hosts File Content

Lets start an Nginx Pod which is assigned an Pod IP:
```

```shell
$ kubectl get pods --output=wide
NAME READY STATUS RESTARTS AGE IP NODE
nginx 1/1 Running 0 13s 10.200.0.4 worker0
```

The hosts file content would look like this:
```

```shell
$ kubectl exec nginx -- cat /etc/hosts
# Kubernetes-managed hosts file.
127.0.0.1 localhost
Expand All @@ -43,7 +45,8 @@ In addition to the default boilerplate, we can add additional entries to the hos
{% include code.html language="yaml" file="hostaliases-pod.yaml" ghlink="/docs/concepts/services-networking/hostaliases-pod.yaml" %}

The hosts file content would look like this:
```

```shell
$ kubectl logs hostaliases-pod
# Kubernetes-managed hosts file.
127.0.0.1 localhost
Expand Down