k8s初始版本storm

This commit is contained in:
lixikang
2020-05-25 16:48:37 +08:00
parent 0d1396f415
commit fc431fa3bd
53 changed files with 2660 additions and 0 deletions

74
storm/docker-compose.yml Normal file
View File

@@ -0,0 +1,74 @@
version: "3"
services:
#设置容器名称和docker-compose中的名称(文件夹名称_当前名称_数字),如果下面配置了container_name,以container_name中的值为准
nimbus:
#依赖的镜像
{% if offline_install %}
image: {{ image_name }}:{{ image_tag_name }}
{% else %}
image: {{ docker_registry_image_and_tag }}
{% endif %}
container_name: {{ nimbus_container_name }}
command: /opt/apache-storm-1.0.2/start_storm.sh storm nimbus
restart: always
ports:
- 6627:6627
environment:
ZK_IPARR: {{ machine_host }}
NIMBUS_IP: {{ machine_host }}
ZK_PORTS: {{ zookeeper_port }}
SPORTS: 30
WORKER_MEM: 2048
volumes:
- "{{ volume_path }}/tsg3.0-volumes/storm/nimbus/data:/opt/storm"
- "{{ volume_path }}/tsg3.0-volumes/storm/nimbus/logs:/opt/apache-storm-1.0.2/logs"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
network_mode: "host"
supervisor:
#依赖的镜像
{% if offline_install %}
image: {{ image_name }}:{{ image_tag_name }}
{% else %}
image: {{ docker_registry_image_and_tag }}
{% endif %}
container_name: {{ supervisor_container_name }}
command: /opt/apache-storm-1.0.2/start_storm.sh storm supervisor
environment:
ZK_IPARR: {{ machine_host }}
NIMBUS_IP: {{ machine_host }}
ZK_PORTS: {{ zookeeper_port }}
SPORTS: 30
WORKER_MEM: 2048
depends_on:
- nimbus
restart: always
volumes:
- "{{ volume_path }}/tsg3.0-volumes/storm/supervisor/data:/opt/storm"
- "{{ volume_path }}/tsg3.0-volumes/storm/supervisor/logs:/opt/apache-storm-1.0.2/logs"
- "{{ volume_path }}/tsg3.0-volumes/topologylogs:/opt/topologylogs"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
network_mode: "host"
ui:
#依赖的镜像
{% if offline_install %}
image: {{ image_name }}:{{ image_tag_name }}
{% else %}
image: {{ docker_registry_image_and_tag }}
{% endif %}
container_name: {{ ui_container_name }}
command: /opt/apache-storm-1.0.2/start_storm.sh storm ui
ports:
- 8080:8080
environment:
ZK_IPARR: {{ machine_host }}
NIMBUS_IP: {{ machine_host }}
ZK_PORTS: {{ zookeeper_port }}
SPORTS: 30
WORKER_MEM: 2048
depends_on:
- nimbus
network_mode: "host"