consul
Installation
SKILL.md
Consul
HashiCorp Consul is a service networking solution providing service discovery, secure service mesh with mutual TLS, dynamic traffic routing, and distributed key-value storage.
When to Use
- Service Discovery & Health Checking: Dynamic registration and lookup of microservices across hybrid cloud networks.
- Service Mesh & Mutual TLS (mTLS): Enforcing zero-trust encryption and authorization between microservices via Envoy sidecars.
- Distributed Key-Value Store: Centralized runtime configuration and dynamic feature flags.
- Multi-Datacenter Federation: Connecting and discovering services seamlessly across multiple cloud providers and regions.
Quick Start
# Service registration definition: /etc/consul.d/web.hcl
service {
name = "web-api"
port = 8080
tags = ["v1", "production"]