Skip to content

Instantly share code, notes, and snippets.

@superseb
Created June 30, 2017 14:28
Show Gist options
  • Save superseb/65c946eb17010d2009cbd2d803230055 to your computer and use it in GitHub Desktop.
Save superseb/65c946eb17010d2009cbd2d803230055 to your computer and use it in GitHub Desktop.
Rancher simulate DB network fail
version: '2'
services:
db:
image: mariadb:5.5
command: --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=cattle
pumba:
image: gaiaadm/pumba
command: pumba netem --interface eth0 --duration 3m delay --time 3000 rancherdelay_db_1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- "db"
rancherserver:
image: rancher/server:v1.6.2
command: --db-host db --db-port 3306 --db-user cattle --db-pass cattle --db-name cattle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment