Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.64 KB

File metadata and controls

30 lines (23 loc) · 1.64 KB

V1PodDNSConfig

PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.

Properties

Name Type Description Notes
nameservers List[str] A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. [optional]
options List[V1PodDNSConfigOption] A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. [optional]
searches List[str] A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. [optional]

Example

from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig

# TODO update the JSON string below
json = "{}"
# create an instance of V1PodDNSConfig from a JSON string
v1_pod_dns_config_instance = V1PodDNSConfig.from_json(json)
# print the JSON string representation of the object
print(V1PodDNSConfig.to_json())

# convert the object into a dict
v1_pod_dns_config_dict = v1_pod_dns_config_instance.to_dict()
# create an instance of V1PodDNSConfig from a dict
v1_pod_dns_config_from_dict = V1PodDNSConfig.from_dict(v1_pod_dns_config_dict)

[Back to Model list] [Back to API list] [Back to README]