parent
83345b2551
commit
a6a0cf42eb
23
infra-templates/swarm/2/docker-compose.yml
Normal file
23
infra-templates/swarm/2/docker-compose.yml
Normal file
@ -0,0 +1,23 @@
|
||||
version: '2'
|
||||
services:
|
||||
swarmkit-mon:
|
||||
image: rancher/swarmkit:v1.12.3-3
|
||||
environment:
|
||||
MANAGER_SCALE: ${MANAGER_SCALE}
|
||||
labels:
|
||||
io.rancher.container.agent.role: environment
|
||||
io.rancher.container.create_agent: 'true'
|
||||
io.rancher.container.dns: 'true'
|
||||
io.rancher.container.pull_image: always
|
||||
io.rancher.scheduler.affinity:host_label: io.rancher.host.docker_version=1.12
|
||||
io.rancher.scheduler.global: 'true'
|
||||
network_mode: host
|
||||
privileged: true
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /var/lib/rancher/state:/var/lib/rancher/state
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 25m
|
||||
max-file: '2'
|
24
infra-templates/swarm/2/rancher-compose.yml
Normal file
24
infra-templates/swarm/2/rancher-compose.yml
Normal file
@ -0,0 +1,24 @@
|
||||
.catalog:
|
||||
version: v1.12.3-3
|
||||
minimum_rancher_version: 1.2.2
|
||||
questions:
|
||||
- variable: MANAGER_SCALE
|
||||
label: Number of Managers
|
||||
description: Desired number of managers to participating in service orchestration. This dictates host resilience.
|
||||
required: true
|
||||
default: 3
|
||||
type: enum
|
||||
options:
|
||||
- 1
|
||||
- 3
|
||||
- 5
|
||||
- 7
|
||||
- 9
|
||||
swarmkit-mon:
|
||||
health_check:
|
||||
request_line: GET /ping HTTP/1.0
|
||||
port: 2378
|
||||
interval: 15000
|
||||
response_timeout: 10000
|
||||
healthy_threshold: 1
|
||||
unhealthy_threshold: 2
|
@ -1,5 +1,5 @@
|
||||
name: SwarmKit
|
||||
description: >
|
||||
A toolkit for orchestrating distributed systems at any scale
|
||||
version: v1.12.3-2
|
||||
version: v1.12.3-3
|
||||
category: Orchestration
|
||||
|
Loading…
x
Reference in New Issue
Block a user