提交 ba8ff50e 作者: 施泽锋

新增标签

上级 00906db6
...@@ -20,6 +20,9 @@ services: ...@@ -20,6 +20,9 @@ services:
volumes: volumes:
- els-data:/opt/path/to/data - els-data:/opt/path/to/data
tty: true tty: true
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${elk_label}
kibana: kibana:
image: reg.wsy010.cn/elk/kibana:7.0.1 image: reg.wsy010.cn/elk/kibana:7.0.1
environment: environment:
...@@ -40,6 +43,9 @@ services: ...@@ -40,6 +43,9 @@ services:
- DEBUG=${debug} - DEBUG=${debug}
stdin_open: true stdin_open: true
tty: true tty: true
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${elk_label}
kibana-nginx: kibana-nginx:
image: reg.wsy010.cn/elk/kibana-nginx:0.1 image: reg.wsy010.cn/elk/kibana-nginx:0.1
environment: environment:
...@@ -53,6 +59,7 @@ services: ...@@ -53,6 +59,7 @@ services:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
traefik.backend.loadbalancer.stickiness: 'true' traefik.backend.loadbalancer.stickiness: 'true'
traefik.frontend.headers.customRequestHeaders: X-Forwarded-Proto:https traefik.frontend.headers.customRequestHeaders: X-Forwarded-Proto:https
io.rancher.scheduler.affinity:host_label: ${elk_label}
redis: redis:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/redis:4.0 image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/redis:4.0
environment: environment:
...@@ -61,6 +68,7 @@ services: ...@@ -61,6 +68,7 @@ services:
tty: true tty: true
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${elk_label}
volumes: volumes:
els-data: els-data:
driver: ${volumns_dirver} driver: ${volumns_dirver}
\ No newline at end of file
...@@ -122,6 +122,12 @@ catalog: ...@@ -122,6 +122,12 @@ catalog:
required: false required: false
default: "" default: ""
type: "string" type: "string"
- variable: elk_label
description: "用于提供日志服务的主机标签,只在带有该标签的主机上运行本容器。"
label: "调度标签"
required: true
default: "elk=true"
type: "string"
- variable: volume_driver - variable: volume_driver
description: "应用数据卷驱动程序" description: "应用数据卷驱动程序"
label: "卷驱动" label: "卷驱动"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论