Skip to content

Commit 14c07ed

Browse files
authored
logs command to check etc/hosts file corrected
hosts file can be viewed using exec command.
1 parent 7d05b90 commit 14c07ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ hostaliases-pod 0/1 Completed 0 6s 10.200
9393
The `hosts` file content would look like this:
9494

9595
```shell
96-
kubectl logs hostaliases-pod
96+
kubectl exec hostaliases-pod -- cat /etc/hosts
9797
```
9898

9999
```none

0 commit comments

Comments
 (0)