Created
June 30, 2017 14:28
-
-
Save superseb/65c946eb17010d2009cbd2d803230055 to your computer and use it in GitHub Desktop.
Rancher simulate DB network fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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