Allow multipe DNS servers as comma-seperated argument for --dns
Depending on an exact cluster setup multiple dns may make sense. Comma-seperated lists of DNS server are quite common as DNS servers are always plain IPs.
This commit is contained in:
@@ -174,7 +174,7 @@ func TestGenerateRunContainerOptions_DNSConfigurationParams(t *testing.T) {
|
||||
|
||||
clusterNS := "203.0.113.1"
|
||||
kubelet.clusterDomain = "kubernetes.io"
|
||||
kubelet.clusterDNS = net.ParseIP(clusterNS)
|
||||
kubelet.clusterDNS = []net.IP{net.ParseIP(clusterNS)}
|
||||
|
||||
pods := newTestPods(2)
|
||||
pods[0].Spec.DNSPolicy = v1.DNSClusterFirst
|
||||
|
||||
Reference in New Issue
Block a user