From 9d5f1e7b6ed6fe623a1319d394b483c8505c2d11 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 11 Sep 2017 15:40:09 -0700 Subject: [PATCH] Use DNSPolicy ClusterFirstWithHostNet for HostPort mode. (#488) --- pkg/ingress/hostport.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/ingress/hostport.go b/pkg/ingress/hostport.go index 1ea241f4b..ce2e73ea0 100644 --- a/pkg/ingress/hostport.go +++ b/pkg/ingress/hostport.go @@ -538,6 +538,7 @@ func (c *hostPortController) newPods() *apps.Deployment { }, Volumes: Volumes(secrets), HostNetwork: true, + DNSPolicy: apiv1.DNSClusterFirstWithHostNet, }, }, },