Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HNC dnsPolicy with hostNetwork #68

Closed
dhorner71 opened this issue Feb 5, 2025 · 0 comments · Fixed by #69
Closed

HNC dnsPolicy with hostNetwork #68

dhorner71 opened this issue Feb 5, 2025 · 0 comments · Fixed by #69

Comments

@dhorner71
Copy link

dhorner71 commented Feb 5, 2025

Hi @jouve. I didn't realize we would need dnsPolicy = ClusterFirstWithHostNet if hostNetwork = true. Seem like default value is dnsPolicy = ClusterFirst if none is specified.

sample templating taken from cert-manager:

{{- if .Values.hostNetwork }}
hostNetwork: true
{{- end }}
{{- if .Values.hostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}

cert-manager reference: 
https://github.com/cert-manager/cert-manager/blob/master/deploy/charts/cert-manager/templates/webhook-deployment.yaml#L73-L78

Thank you for your previous consideration and community work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant