Skip to content

Consul registration won't disable #209

@momania

Description

@momania

When running Fabio as a Nomad job, the Consul registration uses the ip address of the Docker bridge. So I'd like to disable this registration so I can register it in the Nomad job, but passing the command line param that should switch this has no effect.

task "fabio" {
      driver = "docker"

      config {
         image = "magiconair/fabio"
         command = "/fabio"
         args = [
           "-registry.consul.addr", "169.254.0.1:8500",
           "-registry.consul.register.enabled", "false"
         ]
     }
}

The different Consul address is picked up correctly, but not the registration flag.

"Registry": {
        "Backend": "consul",
        "Static": {
            "Routes": ""
        },
        "File": {
            "Path": ""
        },
        "Consul": {
            "Addr": "169.254.0.1:8500",
            "Scheme": "http",
            "Token": "",
            "KVPath": "/fabio/config",
            "TagPrefix": "urlprefix-",
            "Register": true,
            "ServiceAddr": ":9998",
            "ServiceName": "fabio",
            "ServiceTags": null,
            "ServiceStatus": [
                "passing"
            ],
            "CheckInterval": 1000000000,
            "CheckTimeout": 3000000000
        }
    },

Any idea what might be going wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions