The issue was because I forgot to add the application name in the pom.xml inside the resources folder. The updated pom.xml is as follows.
spring: application: name: eurekaserver config: import: "configserver:http://localhost:8071" profiles: active: dev management: endpoints: web: exposure: include: "*" health: readiness-state: enabled: true liveness-state: enabled: true endpoint: health: probes: enabled: true