updating Pod DNS config example to use documentation IP address (#39169)

* updating Pod DNS config example to use documentation IP address

* add this is an example in note

* empty commit
pull/39345/head
Reeta Singh 2023-02-07 22:44:59 -08:00 committed by GitHub
parent 4e4c238ebf
commit f78e3bf0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ When the Pod above is created, the container `test` gets the following contents
in its `/etc/resolv.conf` file:
```
nameserver 1.2.3.4
nameserver 192.0.2.1
search ns1.svc.cluster-domain.example my.dns.search.suffix
options ndots:2 edns0
```

View File

@ -10,7 +10,7 @@ spec:
dnsPolicy: "None"
dnsConfig:
nameservers:
- 1.2.3.4
- 192.0.2.1 # this is an example
searches:
- ns1.svc.cluster-domain.example
- my.dns.search.suffix