Skip to content

Static / Manual routes management via API #396

@stevenscg

Description

@stevenscg

I have a use-case where a large number of hostnames (or subdomains) (dozens to a few hundreds) need to be set for a particular consul service. While the number of hostnames is a problem and unwieldy to put into the job file, the hostnames can be added and remove programmatically as customers are provisioned.

I couldn't find any documentation on how to do this via the API, but figured out GET/PUT to /api/manual on the fabio UI port works for this.

I have a request similar to #364 (comment) where more control over adding and removing routes for a given service would be ideal. I looked for a DELETE operation on the API to use when a hostname is added or removed programmatically, but one does not exist.

I also need to provide a route between a host (foo.example.com) and the service (app) when hostnames are added or removed programmatically. Is this supported?

Is this the correct syntax?

route add app foo.example.com/ app

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions