- @erichaberkorn
- @DanStough
- @jessingrass
- @hashi-derek
- @andrewstucki
These scenarios are divided into 3 categories of target environment:
- Local - to be run on a single workstation
- Kubernetes - to be run on a Kubernetes cluster
- VMs - to be run in separate VMs
- On Mac, have Consul and Envoy installed via Homebrew
- On Linux, install Consul and Envoy via the package manager. Envoy won't work for
ARM64
See install-server.sh
.
Run dev agent (both server and client)
consul agent -dev
Run in the background
consul agent -config-dir=./consul-scenarios/consul.d -dev > ./consul-scenarios/logs/test-one.log &
# Show the jobs
jobs
# [1]+ Running consul agent -config-dir=./consul-scenarios/consul.d -dev > ./consul-scenarios/logs/test-one.log &
# Cancel the jobs
fg %1
# <ctrl+c>
Run dev agent with configuration file
consul agent -config-dir=./consul-scenarios/dev-peering.hcl -dev
To add a service, just use both one of the dev
, server
or client
files in conjunction with the HCL service definition.