Commit db126130 authored by Kyle Larose's avatar Kyle Larose Committed by Konstantinos Tsakalozos
Browse files

Use ClusterFirstWithHostNet for nginx dnsPolicy (#340)

The nginx ingress pod is created with `hostNet: true`. This means that
it does not, by default, have access to kuebdns. We need that so that
the ingress controller can map things like ExternalName services to
internal services.

This fixes the problem by setting the dnsPolicy to

Fixes #339
parent 98d4cbbb
......@@ -81,6 +81,7 @@ spec:
terminationGracePeriodSeconds: 60
# hostPort doesn't work with CNI, so we have to use hostNetwork instead
# see
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true
serviceAccountName: nginx-ingress-microk8s-serviceaccount
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment