Created
March 29, 2017 05:59
-
-
Save VAdamec/f5a89dd36b76d535bad69abe6a12df0a to your computer and use it in GitHub Desktop.
LAB configuration
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
--------------------------------lb-------------------------------- | |
version: '2' | |
services: | |
lb1: | |
image: rancher/lb-service-haproxy:latest | |
ports: | |
- 80:80/tcp | |
labels: | |
io.rancher.container.agent.role: environmentAdmin | |
io.rancher.container.create_agent: 'true' | |
version: '2' | |
services: | |
lb1: | |
scale: 1 | |
start_on_create: true | |
lb_config: | |
certs: [] | |
port_rules: | |
- protocol: http | |
selector: foo=bar | |
source_port: 80 | |
health_check: | |
healthy_threshold: 2 | |
response_timeout: 2000 | |
port: 42 | |
unhealthy_threshold: 3 | |
interval: 2000 | |
strategy: recreate | |
--------------------------------web1-------------------------------- | |
version: '2' | |
services: | |
web1: | |
image: nginx | |
labels: | |
foo: bar | |
version: '2' | |
services: | |
web1: | |
scale: 1 | |
start_on_create: true | |
lb_config: | |
certs: [] | |
port_rules: | |
- hostname: test.com | |
target_port: 80 | |
--------------------------------web2-------------------------------- | |
version: '2' | |
services: | |
web2: | |
image: nginx | |
labels: | |
foo: bar | |
version: '2' | |
services: | |
web2: | |
scale: 1 | |
start_on_create: true | |
lb_config: | |
certs: [] | |
port_rules: | |
- hostname: example.com/test | |
target_port: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment