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

Able to get config keys from environment varibles #9

Open
bergerx opened this issue Jun 30, 2015 · 1 comment
Open

Able to get config keys from environment varibles #9

bergerx opened this issue Jun 30, 2015 · 1 comment
Assignees

Comments

@bergerx
Copy link

bergerx commented Jun 30, 2015

In my current setup I don't want mesos-dns to depend on anything other than marathon itself (including any file server outside). So I'm not able to use "uris" to pass a config.json file in my marathon config.

I created another mesos-dns docker image just to be able to give mesos-dns parameters as environment variables: https://registry.hub.docker.com/u/bergerx/mesos-dns/
I prefer not to maintain a copy of mesos-dns docker image and want to use it from upstream.

Here is my mesos-dns-marathon.json file:

{
  "cpus": 0.1,
  "mem": 102,
  "id": "mesos-dns",
  "instances": 1,
  "constraints": [["hostname", "CLUSTER", "192.168.0.23"]],
  "env": {
    "MESOS_DOCKER_ZK": "zk://192.168.0.23:2181,192.168.0.26:2181,192.168.0.27:2181/mesos",
    "MESOS_DNS_MASTERS": "192.168.0.23:5050,192.168.0.26:5050,192.168.0.27:5050",
    "MESOS_DNS_RESOLVERS": "8.8.8.8"
  },
  "container": {
    "type": "DOCKER",
    "docker": { "image": "bergerx/mesos-dns" }
  },
  "healthChecks": [{
    "protocol": "COMMAND",
    "command": { "value": "dig +short leader.mesos @$HOST | grep ." }
  }],
  "upgradeStrategy": {
    "minimumHealthCapacity": 0,
    "maximumOverCapacity": 0
  }
}
@amouat
Copy link

amouat commented Aug 12, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants