mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qian Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-7709) Add --dns flag to the agent.
Date Tue, 27 Jun 2017 05:36:00 GMT

    [ https://issues.apache.org/jira/browse/MESOS-7709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16064300#comment-16064300
] 

Qian Zhang commented on MESOS-7709:
-----------------------------------

[~avinash.mesos] Agree!

> Add --dns flag to the agent.
> ----------------------------
>
>                 Key: MESOS-7709
>                 URL: https://issues.apache.org/jira/browse/MESOS-7709
>             Project: Mesos
>          Issue Type: Task
>          Components: containerization
>            Reporter: Avinash Sridharan
>            Assignee: Avinash Sridharan
>
> Mesos support both CNI (through `network/cni` isolator) and CNM (through docker) specification.
Both these specifications allow for DNS entries for containers to be set on a per-container,
and per-network basis. 
> Currently, the behavior of the agent is to use the DNS nameservers set in /etc/resolv.conf
when the CNI or CNM plugin that is used to attached the container to the CNI/CNM network doesnt'
explicitly set the DNS for the container. This is a bit inflexible especially when we have
a mix of v4 and v6 networks. 
> The operator should be able to specify DNS nameservers for the networks he installs either
the override the ones provided by the plugin or as defaults when the plugins are not going
to specify DNS name servers.
> In order to achieve the above goal we need to introduce a `\--dns` flag to the agent.
The `\--dns` flag should support a JSON (or a JSON file) with the following schema:
> {code}
> {
>   "mesos": {
>     [ 
>       {
>         "network" : <name of the network>,
>         "nameservers": [<list of name servers (upto 3)>]
>       }
>     ]
>   },
>   "docker": {
>     [ 
>       {
>         "network" : <name of the network>,
>         "nameservers": [<list of name servers (upto 3)>]
>       }
>     ]
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message