Set dnsPolicy to Default on k8s build jobs

This prevents the builder pods from having resolv.conf pointed at the
kube-dns service, which they won't have access to.
This commit is contained in:
Brad Ison 2016-09-29 11:22:11 -04:00
parent 631ad0422d
commit 593c3eb9c7

View file

@ -384,6 +384,7 @@ class KubernetesExecutor(BuilderExecutor):
],
'imagePullSecrets': [{'name': 'builder'}],
'restartPolicy': 'Never',
'dnsPolicy': 'Default',
},
},
},