Merge pull request #68890 from andrewrynhard/dnspolicy

kubeadm: Create control plane with ClusterFirstWithHostNet dns policy
pull/58/head
k8s-ci-robot 2018-09-26 20:37:57 -07:00 committed by GitHub
commit e9fe3f77e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ func ComponentPod(container v1.Container, volumes map[string]v1.Volume) v1.Pod {
Containers: []v1.Container{container}, Containers: []v1.Container{container},
PriorityClassName: "system-cluster-critical", PriorityClassName: "system-cluster-critical",
HostNetwork: true, HostNetwork: true,
DNSPolicy: v1.DNSClusterFirstWithHostNet,
Volumes: VolumeMapToSlice(volumes), Volumes: VolumeMapToSlice(volumes),
}, },
} }

View File

@ -380,6 +380,7 @@ func TestComponentPod(t *testing.T) {
}, },
PriorityClassName: "system-cluster-critical", PriorityClassName: "system-cluster-critical",
HostNetwork: true, HostNetwork: true,
DNSPolicy: v1.DNSClusterFirstWithHostNet,
Volumes: []v1.Volume{}, Volumes: []v1.Volume{},
}, },
}, },