Skip to content
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

Provide working example for VIP routing #3779

Closed
meichstedt opened this issue Apr 14, 2016 · 2 comments · Fixed by #3802
Closed

Provide working example for VIP routing #3779

meichstedt opened this issue Apr 14, 2016 · 2 comments · Fixed by #3802
Assignees
Milestone

Comments

@meichstedt
Copy link
Contributor

Please provide a working example (tutorial/deep dive) for VIP routing

This may be integrated into the DC/OS docs, but it should at least be a part of the Marathon documentation.

An example of a deep dive can be found here: mesosphere-backup/dcos-docs#66

Note: this should be done by eod 04/15

@gkleiman
Copy link
Contributor

Here's an app definition using port mappings:

{
  "id": "/server",
  "cmd": "python -m SimpleHTTPServer 80",
  "cpus": 1,
  "mem": 128,
  "disk": 0,
  "instances": 1,
  "container": {
    "docker": {
      "image": "python:2.7-alpine",
      "network": "BRIDGE",
      "portMappings": [
        {
          "containerPort": 80,
          "protocol": "tcp",
          "name": "http",
          "labels": {
            "VIP_0": "192.168.0.100:80"
          }
        }
      ]
    },
    "type": "DOCKER"
  }
}

@gkleiman gkleiman removed their assignment Apr 14, 2016
@air
Copy link
Contributor

air commented Apr 18, 2016

@pierluigi pierluigi self-assigned this Apr 18, 2016
@mesosphere mesosphere locked and limited conversation to collaborators Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants