Skip to content

plugin/nomad: Support service filtering#7724

Merged
thevilledev merged 1 commit into
coredns:masterfrom
olljanat:nomad-service-filter
Nov 25, 2025
Merged

plugin/nomad: Support service filtering#7724
thevilledev merged 1 commit into
coredns:masterfrom
olljanat:nomad-service-filter

Conversation

@olljanat

Copy link
Copy Markdown
Contributor

1. Why is this pull request needed and what does it do?

Allow user to use filters like Tags not contains candidate which are useful example with Blue/Green deployments.

When canary_tags is provided in service registrations this:

service {
  name = "example"
  provider = "nomad"
  address_mode = "driver"
  canary_tags = [
    "candidate"
  ],
  tags = [
    "traefik.enable=true",
    "traefik.http.routers.example.entrypoints=web",
    "traefik.http.routers.example.rule=PathPrefix(`/`)"
  ]
}

tags defined in tags will be listed only in already promoted services so new container versions will be started in parallel but they will not get any traffic before promotion.

2. Which issues (if any) are related?

N/A

3. Which documentation changes (if any) need to be made?

Readme updated.

4. Does this introduce a backward incompatible change or deprecation?

No

Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>

@thevilledev thevilledev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thevilledev thevilledev merged commit bdc03ed into coredns:master Nov 25, 2025
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants