Skip to content

Commit 3c7555c

Browse files
Backport of docs: Remove duplicate 'to' word into release/1.19.x (#21515)
backport of commit 4bd5558 Co-authored-by: Maciej Lisowski <macieejl00@gmail.com>
1 parent 32938b1 commit 3c7555c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

website/content/docs/services/usage/register-services-checks.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
layout: docs
33
page_title: Register services and health checks
44
description: ->
5-
Learn how to register services and health checks with Consul agents.
5+
Learn how to register services and health checks with Consul agents.
66
---
77

88
# Register services and health checks
99

10-
This topic describes how to register services and health checks with Consul in networks running on virtual machines (VM). Refer to [Define Services](/consul/docs/services/usage/define-services) and [Define Health Checks](/consul/docs/services/usage/checks) for information about how to define services and health checks.
10+
This topic describes how to register services and health checks with Consul in networks running on virtual machines (VM). Refer to [Define Services](/consul/docs/services/usage/define-services) and [Define Health Checks](/consul/docs/services/usage/checks) for information about how to define services and health checks.
1111

1212
## Overview
1313
Register services and health checks in VM environments by providing the service definition to a Consul agent. You can use several different methods to register services and health checks.
1414

1515
- Start a Consul agent and pass the service definition in the [agent's configuration directory](/consul/docs/agent#configuring-consul-agents).
1616
- Reload the a running Consul agent and pass the service definition in the [agent's configuration directory](/consul/docs/agent#configuring-consul-agents). Use this method when implementing changes to an existing service or health check definition.
17-
- Use the [`consul services register` command](/consul/commands/services/register) to register new service and health checks with a running Consul agent.
18-
- Call the [`/agent/service/register`](/consul/api-docs/agent/service#register-service) HTTP API endpoint to to register new service and health checks with a running Consul agent.
17+
- Use the [`consul services register` command](/consul/commands/services/register) to register new service and health checks with a running Consul agent.
18+
- Call the [`/agent/service/register`](/consul/api-docs/agent/service#register-service) HTTP API endpoint to register new service and health checks with a running Consul agent.
1919
- Call the [`/agent/check/register`](/consul/api-docs/agent/check#register-check) HTTP API endpoint to register a health check independent from the service.
2020

21-
When a service is registered using the HTTP API endpoint or CLI command, the checks persist in the Consul data folder. If the agent restarts, Consul uses the service and check configurations in the configuration directory to start the services.
21+
When a service is registered using the HTTP API endpoint or CLI command, the checks persist in the Consul data folder. If the agent restarts, Consul uses the service and check configurations in the configuration directory to start the services.
2222

23-
Note that health checks associated with a service are application-level checks.
23+
Note that health checks associated with a service are application-level checks.
2424

2525
## Start an agent
2626
We recommend registering services on startup because the service persists if the agent fails. Specify the directory containing the service definition with the `-config-dir` option on startup. When the Consul agent starts, it processes all configurations in the directory and registers any services contained in the configurations. In the following example, the Consul agent starts and loads the configurations contained in the `configs` directory:
@@ -48,7 +48,7 @@ Refer to [Consul Agent Service Registration](/consul/commands/services/register)
4848
Use the following methods to register services and health checks using the HTTP API.
4949

5050
### Register services
51-
Send a `PUT` request to the `/agent/service/register` API endpoint to dynamically register a service and its associated health checks. To register health checks independently, [call the checks API endpoint](#call-the-checks-http-api-endpoint).
51+
Send a `PUT` request to the `/agent/service/register` API endpoint to dynamically register a service and its associated health checks. To register health checks independently, [call the checks API endpoint](#call-the-checks-http-api-endpoint).
5252

5353
The following example request registers the service defined in the `service.json` file.
5454

0 commit comments

Comments
 (0)