Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-207

Can't launch VIP task on ip-per-container with calico network

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: DC/OS 1.9.0
    • Fix Version/s: None
    • Component/s: networking
    • Labels:
      None

      Description

      I'm trying to launch a task onto an ip-per-container docker network while also assigning it a Minuteman VIP.

      I've created a docker network called "test" using the Calico network driver. Then I launch a task on that network and request a VIP using the following application definition:

      {
        "id": "calico-test-1",
        "cpus": 0.1,
        "mem": 128,
        "instances": 1,
        "container": {
          "docker": {
            "image": "nginx",
            "network": "HOST",
            "parameters": [
              {
                "key": "net",
                "value": "test"
              }
            ]
          },
          "type": "DOCKER"
        },
        "ipAddress": {
            "discovery": {
                "ports": [
                    {"number": 80, 
                     "name": "http", 
                     "protocol": "tcp", 
                     "labels": {
                         "VIP_0": "1.2.3.4:5005"}
                     }
                 ]
            }
        }
      }
      

      Minuteman requires a VIP_$ label in the ports protobuf to work. Since this is an IP-per-container application, the portMappings field cannot be specified, so I've used the ipAddress.discovery.ports field.

        Attachments

          Activity

            People

            • Assignee:
              dgoel Deepak Goel
              Reporter:
              djosborne Dan Osborne
              Watchers:
              Dan Osborne, Deepak Goel, James DeFelice
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your JIRA administrators.