Consul
Consul Sandbox (Service Discovery)
HashiCorp Sandboxes are interactive environments where you can experiment with HashiCorp products without installation or setup.
You can use Sandboxes to:
- Learn how products work in a real environment.
- Test configurations and commands without affecting your systems.
- Explore product features in a safe sandbox.
- Follow along with tutorials and documentation.
This Consul sandbox is configured with service discovery enabled.
Launch Terminal
This tutorial includes a free interactive command-line lab that lets you follow along on actual cloud infrastructure.
Getting started
After you start the sandbox environment, run the following command on one of the Bastion hosts to source the environment variables and connect to the Consul cluster:
source assets/scenario/env-consul.env
Then, you can export your ACL token to log into the Consul UI:
echo $CONSUL_HTTP_TOKEN
Refer to the README
and SERVICE DISCOVERY
documents in the Files tab for more information about using the sandbox environment.
Resources
You can experiment with the Consul sandbox to learn in a practical way by following examples from tutorials and documentation.
Here are some suggestions for tutorials and documentation content you can explore with the Consul sandbox.
- Discover how to register services
- Become familiar with the Consul CLI commands
- Become familiar with the Consul API endpoints
- Become familiar with the Consul DNS interface