-
Notifications
You must be signed in to change notification settings - Fork 2k
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
How to pass dns sessings when network stanza for taskgroup used? #7393
Comments
I don't believe we support setting DNS in nomad. It does seem somewhat task driver specific (e.g. docker vs exec) so it may require extra care. I'll raise it with the team. Thanks for raising. |
@notnoop Please suggest any workaround of this? Now if nomad client host have any dns caching solutions like dnsmask or systemd-resolved, so inside bridge network we got absolutely not usable dns resolving which is simply doesn't work because
Only solution that we concocted is to wrap bridge binary of cni with something custom which will modify stdin(as i understand its simple json) to provide additional info for dns |
Hey @tantra35 I'm working on this as part of a deeper integration with CNI. Unfortunately theres not an easy way to do it today. You might try using the nomad bridge IP for running local nameservers. It should be both reachable from the host and bridged allocs. We definitely will be exposing these settings more first class in the job file, but this might workaround in the meantime. |
@tantra35 would you have a code example for a CNI config to put into |
@nickethier I already have |
Hey there Since this issue hasn't had any activity in a while - we're going to automatically close it in 30 days. If you're still seeing this issue with the latest version of Nomad, please respond here and we'll keep this open and take another look at this. Thanks! |
Just want to confirm this is available with Nomad 0.12 that went GA today... I don't see this feature listed in the changelog but I see it in the docs at https://www.nomadproject.io/docs/job-specification/network... so, may I assume this is delivered on 0.12 GA? 😃 |
Yep @danlsgiga , with Nomad v0.12 the ability to pass through DNS configuration using the |
not working with with follow erro: |
I believe #8600 fixes this! |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
0.10.4
Issue
When we use network stanza inside tack group there not any chance to defining dns configuration. Only to partial workaround of this is define dns in
/etc/cni/net.d
default conf of CNI pluginsThe text was updated successfully, but these errors were encountered: