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 --default_container_dns flag to the agent.
Date Thu, 03 Aug 2017 08:02:00 GMT

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

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

commit ebfccf4ea12ccc4b02700b44e69ab17affd50019
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Wed Jun 28 14:10:01 2017 +0800

    Introduced `--default_container_dns` agent flag.
    
    Review: https://reviews.apache.org/r/60500

commit 48b5ef036905ae5a112af26ab6985953f8179c8c
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Wed Jun 28 22:26:02 2017 +0800

    Passed default container DNS info to Docker executor.
    
    Review: https://reviews.apache.org/r/60557

commit 3da83b3318a612b3bbf1223fbafe506c1ed4bcc4
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Fri Jun 30 09:53:41 2017 +0800

    Set container DNS with `--default_container_dns` in Docker executor.
    
    Review: https://reviews.apache.org/r/60558

commit cf841cdd482d78e2872f04539cf82d151dffd689
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Mon Jul 24 14:38:22 2017 +0800

    Set container DNS with `--default_container_dns` in DockerContainerizer.
    
    Review: https://reviews.apache.org/r/61075

commit 30b49016adc30a9598d426ee35af14ee73963f77
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Mon Jul 3 21:50:17 2017 +0800

    Set container DNS with `--default_container_dns` in CNI isolator.
    
    Review: https://reviews.apache.org/r/60600

commit 28faca0ae2b3aeeddd078a978f4b7b2483d03c20
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Tue Jul 11 14:41:17 2017 +0800

    Parsed DNS related info from the output of `docker inspect`.
    
    Review: https://reviews.apache.org/r/60760

commit d67595cdeff45f54aa227e5ae33afe6b7ac1c53a
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Tue Jul 11 16:58:43 2017 +0800

    Added a test `DockerContainerizerTest.ROOT_DOCKER_DefaultDNS`.
    
    Review: https://reviews.apache.org/r/60761

commit 18ad7fb7473849ba67b1ff007e2d131556eb42d8
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Wed Jul 12 14:48:08 2017 +0800

    Added a test `DefaultContainerDNSCniTest.ROOT_VerifyDefaultDNS`.
    
    Review: https://reviews.apache.org/r/60793

commit 01e5bc386c744aa5e9976935674639595557a760
Author: Qian Zhang <zhq527725@gmail.com>
Date:   Sun Jul 30 23:29:10 2017 +0800

    Added a test `DefaultContainerDNSFlagTest.ValidateFlag`.
    
    Review: https://reviews.apache.org/r/61245

> Add --default_container_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: Qian Zhang
>              Labels: mesosphere
>
> 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