Fix: Zookeeper package, configured network_mode to none for sidekicks

This commit is contained in:
Raul Sanchez 2018-01-25 16:39:28 +01:00
parent b14a5f571e
commit 830898d8cf
3 changed files with 5 additions and 3 deletions

View File

@ -19,6 +19,7 @@
- ZK_MAX_CLIENT_CXNS="500" - ZK_MAX_CLIENT_CXNS="500"
- ZK_SYNC_LIMIT="5" - ZK_SYNC_LIMIT="5"
- ZK_TICK_TIME="2000" - ZK_TICK_TIME="2000"
- host_label="" # Host label where to deploy zookeeper.
Click deploy. Click deploy.

View File

@ -22,6 +22,7 @@ services:
{{- end}} {{- end}}
io.rancher.sidekicks: zk-volume, zk-conf io.rancher.sidekicks: zk-volume, zk-conf
zk-conf: zk-conf:
network_mode: none
labels: labels:
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name} io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name io.rancher.container.hostname_override: container_name
@ -33,6 +34,7 @@ services:
volumes: volumes:
- zkconfig:/opt/tools - zkconfig:/opt/tools
zk-volume: zk-volume:
network_mode: none
labels: labels:
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name} io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name io.rancher.container.hostname_override: container_name

View File

@ -57,10 +57,9 @@ catalog:
default: 60 default: 60
type: "int" type: "int"
- variable: host_label - variable: host_label
label: "Host with Label to put zookeeper on" label: "Host Label"
description: | description: |
Host label to use as zookeeper 'value' tag. Host label where deploy zookeeper. E.G.: 'zookeeper=true'
Example: 'zookeeper=true'
required: false required: false
default: "" default: ""
type: "string" type: "string"