Skip to content

Commit a22aa8f

Browse files
authored
Merge pull request #27709 from shuuji3/patch-10
Make minor changes on en/docs/tasks/network/validate-dual-stack
2 parents f4606d4 + 0e8792c commit a22aa8f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

content/en/docs/tasks/network/validate-dual-stack.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ a00:100::/24
4040
```
4141
There should be one IPv4 block and one IPv6 block allocated.
4242

43-
Validate that the node has an IPv4 and IPv6 interface detected (replace node name with a valid node from the cluster. In this example the node name is k8s-linuxpool1-34450317-0):
43+
Validate that the node has an IPv4 and IPv6 interface detected. Replace node name with a valid node from the cluster. In this example the node name is `k8s-linuxpool1-34450317-0`:
44+
4445
```shell
45-
kubectl get nodes k8s-linuxpool1-34450317-0 -o go-template --template='{{range .status.addresses}}{{printf "%s: %s \n" .type .address}}{{end}}'
46+
kubectl get nodes k8s-linuxpool1-34450317-0 -o go-template --template='{{range .status.addresses}}{{printf "%s: %s\n" .type .address}}{{end}}'
4647
```
4748
```
4849
Hostname: k8s-linuxpool1-34450317-0
@@ -52,9 +53,10 @@ InternalIP: 2001:1234:5678:9abc::5
5253

5354
### Validate Pod addressing
5455

55-
Validate that a Pod has an IPv4 and IPv6 address assigned. (replace the Pod name with a valid Pod in your cluster. In this example the Pod name is pod01)
56+
Validate that a Pod has an IPv4 and IPv6 address assigned. Replace the Pod name with a valid Pod in your cluster. In this example the Pod name is `pod01`:
57+
5658
```shell
57-
kubectl get pods pod01 -o go-template --template='{{range .status.podIPs}}{{printf "%s \n" .ip}}{{end}}'
59+
kubectl get pods pod01 -o go-template --template='{{range .status.podIPs}}{{printf "%s\n" .ip}}{{end}}'
5860
```
5961
```
6062
10.244.1.4
@@ -72,6 +74,7 @@ You can also validate Pod IPs using the Downward API via the `status.podIPs` fie
7274
```
7375

7476
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.
77+
7578
```shell
7679
kubectl exec -it pod01 -- set | grep MY_POD_IPS
7780
```

0 commit comments

Comments
 (0)