spring-cloud / spring-cloud/spring-cloud-consul

Ability to register only management service

Open
#418 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

waiting for votes
Dominant language
Java
Stars
822
Forks
539
Avg merge
9h 31m
Merged PRs (30d)
7

Description

Hi,
I would like to have feature to be able only register management service in consul. I have service based on spring-cloud-stream that does not expose any business REST endpoint, only /actuator is exposed. In that case it would be fine to have registered only management service in consul. Currently there is always registered two services app and app-management

I have setup application to expose only one port and set spring.resources.add-mappings: false to disable default endpoints.

See https://github.com/spring-projects/spring-boot/issues/12927 for original issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by locating the registration path that creates app and app-management, then trace how the single-port, /actuator-only setup is represented. Done means an application can register only its management service in Consul without creating the app service.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.