Consul
Configure client agents on virtual machines
This page describes the process to configure a Consul client agent on virtual machines (VMs). An automated process for production environments is demonstrated in the Consul getting started on Virtual Machines tutorials.
Overview
The Consul client agent is a long-running process that you must deploy on the nodes as your application workloads run on. They use encrypted gossip communication to communicate with Consul server agents so that Consul DNS requests return healthy results when you query the Consul catalog.
The process to deploy the client agent consists of the following steps:
- Verify that the correct version of the Consul binary is installed.
- Update the client agent configuration.
- Add the client agent configuration to the node.
- Ensure the Consul data directory has the correct permissions.
- Start the Consul server process.
You also have the option to configure the retry_join
stanza so that when a Consul agent starts, it automatically joins a cluster. This ability is called cloud auto-join. Configuration requirements vary by cloud provider. For more information, refer to automatically join clusters to a cloud provider.
Client agent configuration
Update the configuration with the following information required to join the cluster:
- Datacenter Name
- Consul server address
Depending on the cluster's existing security, you may need to update the client configuration with these additional parameters:
- CA certificate
- TLS server name
- Valid ACL token