Consul
Connect services with Consul on virtual machines (VMs)
This page describes the process to deploy sidecar proxies on VMs so that your services can connect to Consul's service mesh.
Workflow
For each service you want to connect to the service mesh, complete the following steps:
Configure global proxy settings.
Configure global passthrough settings for all proxies deployed to your service mesh in the proxy defaults configuration entry.
Deploy your service mesh proxy.
Configure proxy behavior in a service definition to register the proxy with Consul.
Start the proxy service.
Proxies appear in the list of services registered to Consul. You must start them before they can route traffic in your service mesh.
Restart services to listen on
localhost
so that they no longer accept traffic from any source but the Envoy proxy.
For additional guidance, refer to the Securely connect your services with Consul service mesh tutorial. This tutorial includes scripts that automate configuration steps in order to demonstrate the practical workflows involved to start each proxy for each service.
Next steps
After you start the sidecar proxies, Consul makes available the rest of its service mesh features. You can now use Consul to manage traffic between services and observe service mesh telemetry.
Your current service mesh is not ready for production environments. Follow these steps to secure north/south access from external sources into the service mesh:
- Deploy the Consul API gateway. Refer to the API gateways overview documentation for configuration information and links to VM-specific deployment guides.
- Secure service-to-service communication with mTLS certificates and service intentions. Refer to the secure Consul overview for more information.