Optional host_label
This commit is contained in:
parent
8d622cff35
commit
cd33234a22
@ -16,13 +16,17 @@ services:
|
|||||||
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
|
||||||
|
{{- if ne .Values.host_label ""}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${host_label}
|
io.rancher.scheduler.affinity:host_label: ${host_label}
|
||||||
|
{{- end}}
|
||||||
io.rancher.sidekicks: zk-volume, zk-conf
|
io.rancher.sidekicks: zk-volume, zk-conf
|
||||||
zk-conf:
|
zk-conf:
|
||||||
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
|
||||||
|
{{- if ne .Values.host_label ""}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${host_label}
|
io.rancher.scheduler.affinity:host_label: ${host_label}
|
||||||
|
{{- end}}
|
||||||
io.rancher.container.start_once: true
|
io.rancher.container.start_once: true
|
||||||
image: rawmind/rancher-zk:3.4.9
|
image: rawmind/rancher-zk:3.4.9
|
||||||
volumes:
|
volumes:
|
||||||
@ -31,7 +35,9 @@ services:
|
|||||||
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
|
||||||
|
{{- if ne .Values.host_label ""}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${host_label}
|
io.rancher.scheduler.affinity:host_label: ${host_label}
|
||||||
|
{{- end}}
|
||||||
io.rancher.container.start_once: true
|
io.rancher.container.start_once: true
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_UID=10002
|
- SERVICE_UID=10002
|
||||||
@ -39,7 +45,6 @@ services:
|
|||||||
- SERVICE_VOLUME=${zk_data_dir}
|
- SERVICE_VOLUME=${zk_data_dir}
|
||||||
volumes:
|
volumes:
|
||||||
- zkdata:${zk_data_dir}
|
- zkdata:${zk_data_dir}
|
||||||
volume_driver: local
|
|
||||||
image: rawmind/alpine-volume:0.0.2-1
|
image: rawmind/alpine-volume:0.0.2-1
|
||||||
volumes:
|
volumes:
|
||||||
zkconfig:
|
zkconfig:
|
@ -61,8 +61,8 @@ catalog:
|
|||||||
description: |
|
description: |
|
||||||
Host label to use as zookeeper 'value' tag.
|
Host label to use as zookeeper 'value' tag.
|
||||||
Example: 'zookeeper=true'
|
Example: 'zookeeper=true'
|
||||||
required: true
|
required: false
|
||||||
default: "private=true"
|
default: ""
|
||||||
type: "string"
|
type: "string"
|
||||||
- variable: "VOLUME_DRIVER"
|
- variable: "VOLUME_DRIVER"
|
||||||
description: "The VOLUME driver to associate with this server"
|
description: "The VOLUME driver to associate with this server"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user