- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for dnsConfig (0.16 sec)
-
pkg/kubelet/network/dns/dns.go
if utilnet.IsIPv6(nodeIP) { dnsConfig.Servers = append(dnsConfig.Servers, "::1") } else { dnsConfig.Servers = append(dnsConfig.Servers, "127.0.0.1") } } if len(dnsConfig.Servers) == 0 { dnsConfig.Servers = append(dnsConfig.Servers, "127.0.0.1") } dnsConfig.Searches = []string{"."} } } if pod.Spec.DNSConfig != nil { dnsConfig = appendDNSConfig(dnsConfig, pod.Spec.DNSConfig)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 04 11:37:10 UTC 2023 - 16.1K bytes - Viewed (0) -
src/net/conf_test.go
t.Fatal(err) } if err := f.Close(); err != nil { t.Fatal(err) } return parseNSSConfFile(f.Name()) } // represents a dnsConfig returned by parsing a nonexistent resolv.conf var defaultResolvConf = &dnsConfig{ servers: defaultNS, ndots: 1, timeout: 5, attempts: 2, err: fs.ErrNotExist, } func TestConfHostLookupOrder(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:46:36 UTC 2024 - 12.3K bytes - Viewed (0) -
pkg/kubelet/network/dns/dns_test.go
hostnetwork bool dnsPolicy v1.DNSPolicy dnsConfig *v1.PodDNSConfig expectedDNSConfig *runtimeapi.DNSConfig }{ { desc: "DNSNone without DNSConfig should have empty DNS settings", dnsPolicy: v1.DNSNone, expectedDNSConfig: &runtimeapi.DNSConfig{}, }, { desc: "DNSNone with DNSConfig should have a merged DNS settings", dnsPolicy: v1.DNSNone,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
src/net/dnsclient_unix.go
lastChecked time.Time // last time resolv.conf was checked dnsConfig atomic.Pointer[dnsConfig] // parsed resolv.conf structure used in lookups } var resolvConf resolverConfig func getSystemDNSConfig() *dnsConfig { resolvConf.tryUpdate("/etc/resolv.conf") return resolvConf.dnsConfig.Load() } // init initializes conf and is only called via conf.initOnce.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 24.5K bytes - Viewed (0) -
src/net/conf.go
// The provided Resolver is optional. nil means to not consider its options. // It also returns dnsConfig when it was used to determine the lookup order. func (c *conf) addrLookupOrder(r *Resolver, addr string) (ret hostLookupOrder, dnsConf *dnsConfig) { if c.dnsDebugLevel > 1 { defer func() { print("go package net: addrLookupOrder(", addr, ") = ", ret.String(), "\n") }() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/core/v1/podspec.go
Priority *int32 `json:"priority,omitempty"` DNSConfig *PodDNSConfigApplyConfiguration `json:"dnsConfig,omitempty"` ReadinessGates []PodReadinessGateApplyConfiguration `json:"readinessGates,omitempty"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 19:22:42 UTC 2022 - 23.9K bytes - Viewed (0) -
pilot/pkg/model/network.go
func newClient() (*dnsClient, error) { servers := NetworkGatewayTestDNSServers if len(servers) == 0 { dnsConfig, err := dns.ClientConfigFromFile("/etc/resolv.conf") if err != nil { return nil, err } if dnsConfig != nil { for _, s := range dnsConfig.Servers { servers = append(servers, net.JoinHostPort(s, dnsConfig.Port)) } } // TODO take search namespaces into account // TODO what about /etc/hosts?
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 16.9K bytes - Viewed (0) -
pkg/dns/client/dns.go
// name in our local nametable. If not, we will forward the query to the // upstream resolvers as is. if dnsConfig != nil { for _, s := range dnsConfig.Servers { h.resolvConfServers = append(h.resolvConfServers, net.JoinHostPort(s, dnsConfig.Port)) } h.searchNamespaces = dnsConfig.Search } log.WithLabels("search", h.searchNamespaces, "servers", h.resolvConfServers).Debugf("initialized DNS")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 16:17:34 UTC 2024 - 23.9K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_sandbox.go
Uid: podUID, Attempt: attempt, }, Labels: newPodLabels(pod), Annotations: newPodAnnotations(pod), } dnsConfig, err := m.runtimeHelper.GetPodDNS(pod) if err != nil { return nil, err } podSandboxConfig.DnsConfig = dnsConfig if !kubecontainer.IsHostNetworkPod(pod) { // TODO: Add domain support in new runtime interface
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 13.6K bytes - Viewed (0) -
pkg/kubelet/container/helpers.go
GenerateRunContainerOptions(ctx context.Context, pod *v1.Pod, container *v1.Container, podIP string, podIPs []string) (contOpts *RunContainerOptions, cleanupAction func(), err error) GetPodDNS(pod *v1.Pod) (dnsConfig *runtimeapi.DNSConfig, err error) // GetPodCgroupParent returns the CgroupName identifier, and its literal cgroupfs form on the host // of a pod. GetPodCgroupParent(pod *v1.Pod) string GetPodDir(podUID types.UID) string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.3K bytes - Viewed (0)