An open API service indexing awesome lists of open source software.

https://github.com/danstough/consul-scenarios


https://github.com/danstough/consul-scenarios

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# 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)
```bash
consul agent -dev
```

Run in the background
```bash
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
#
```

Run dev agent with configuration file
```bash
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.