Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7709

Add --default_container_dns flag to the agent.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • containerization
    • Mesosphere Sprint 58, Mesosphere Sprint 59, Mesosphere Sprint 60
    • 5

    Description

      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:

      {
        "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)>]
          }
        ]
      }
      

      Attachments

        Activity

          People

            qianzhang Qian Zhang
            avinash.mesos Avinash Sridharan
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: