Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Default location for the resolv.conf file. DefaultResolveConfPath = "/etc/resolv.conf" // Default cluster domain value for k8s clusters. DefaultClusterDomain = "cluster.local" )
Variables ¶
This section is empty.
Functions ¶
func GetClusterDomain ¶
GetClusterDomain parses the path to resolv.conf to find the cluster domain.
func GetServiceDNSNames ¶
GetServiceDNSNames returns a list of a service's DNS names. We return: - <svc_name> - <svc_name>.<ns> - <svc_name>.<ns>.svc - <svc_name>.<ns>.svc.<cluster-domain>
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.