Skip to content

DanStough/consul-scenarios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consul Testing Scenarios

Contributors

  • @erichaberkorn
  • @DanStough
  • @jessingrass
  • @hashi-derek
  • @andrewstucki

These scenarios are divided into 3 categories of target environment:

  1. Local - to be run on a single workstation
  2. Kubernetes - to be run on a Kubernetes cluster
  3. VMs - to be run in separate VMs

Local

Prequisites

  • 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.

Basic

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published