Skip to content

Commit

Permalink
Update verbiage
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Evenson <[email protected]>
  • Loading branch information
lachie83 committed Nov 16, 2019
1 parent 1e57d63 commit 88abfd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/en/docs/tasks/network/validate-dual-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ kubectl get pods pod01 -o go-template --template='{{range .status.podIPs}}{{prin
a00:100::4
```

You can also validate Pod IPs using the Downward API using the `status.podIP` fieldPath. The following snippet demonstrates how you can expose the Pod IPs via an environment variable called `MY_POD_IPS` within the container runtime.
You can also validate Pod IPs using the Downward API via the `status.podIP` fieldPath. The following snippet demonstrates how you can expose the Pod IPs via an environment variable called `MY_POD_IPS` within a container.

```
env:
Expand All @@ -68,15 +68,15 @@ You can also validate Pod IPs using the Downward API using the `status.podIP` fi
fieldPath: status.podIPs
```

The following command prints the value of the `MY_POD_IPS` environment variable from within the container. The value is a comma separated list that corresponds to the Pod's IPv4 and IPv6 addresses.
The following command prints the value of the `MY_POD_IPS` environment variable from within a container. The value is a comma separated list that corresponds to the Pod's IPv4 and IPv6 addresses.
```shell
kubectl exec -it pod01 -- env | grep MY_POD_IPS
```
```
MY_POD_IPS=10.244.0.6,fd00::6
```

The Pod's IP addresses will also be written to `/etc/hosts` within the container. The following command executes a cat on `/etc/hosts` on a dual stack Pod. From the output you can verify both the IPv4 and IPv6 IP address for the Pod.
The Pod's IP addresses will also be written to `/etc/hosts` within a container. The following command executes a cat on `/etc/hosts` on a dual stack Pod. From the output you can verify both the IPv4 and IPv6 IP address for the Pod.

```shell
kubectl exec -it pod01 -- cat /etc/hosts
Expand Down

0 comments on commit 88abfd8

Please sign in to comment.