关于Kubernetes集群的Deepstream.io

时间:2017-11-16 03:59:26

标签: kubernetes docker-compose deepstream.io

是否可以使用Kubernetes在多节点集群上部署DeepStream和Redis?

Docker Compose选项在DeepStreamHub(https://deepstreamhub.com/open-source/install/docker-compose/)中可用,但未找到Kubernetes YAML选项。

DeepStream + Redis + RethinkDB docker撰写文件内容为:

version: '2'
services:
deepstream:
    build: "."
    ports:
        - "6020:6020"
        - "6021:6021"
    volumes:
        - ./conf:/usr/local/deepstream/conf
        - ./var:/usr/local/deepstream/var
    depends_on:
        - redis
        - rethinkdb
deepstream-search-provider:
    # build: "../deepstream.io-provider-search-rethinkdb/1.1.1"
    image: deepstreamio/deepstream.io-provider-search-rethinkdb
    environment:
        - DEEPSTREAM_HOST=deepstream
        - DEEPSTREAM_PORT=6021
        - RETHINKDB_HOST=rethinkdb
    depends_on:
        - deepstream
redis:
    image: redis:alpine
    ports:
        - "6379:6379"
rethinkdb:
    image: rethinkdb
    ports:
        - "28015:28015"
        - "8080:8080"
    volumes:
        - ./rethinkdb_data:/data/rethinkdb_data

PS:我尝试使用kompose将docker-compose.yml转换为Kubernetes YAML,但收到了以下警告:

WARN Unsupported depends_on key - ignoring
WARN Volume mount on the host "./conf" isn't supported - ignoring path on the host
WARN Volume mount on the host "./var" isn't supported - ignoring path on the host
WARN Volume mount on the host "./rethinkdb-data" isn't supported - ignoring path on the host
INFO Kubernetes file "deepstream-service.yaml" created
INFO Kubernetes file "deepstream-search-provider-service.yaml" created
INFO Kubernetes file "redis-service.yaml" created
INFO Kubernetes file "rethinkdb-service.yaml" created
INFO Kubernetes file "deepstream-deployment.yaml" created
INFO Kubernetes file "deepstream-claim0-persistentvolumeclaim.yaml" created
INFO Kubernetes file "deepstream-claim1-persistentvolumeclaim.yaml" created
INFO Kubernetes file "deepstream-search-provider-deployment.yaml" created
INFO Kubernetes file "redis-deployment.yaml" created
INFO Kubernetes file "rethinkdb-deployment.yaml" created
INFO Kubernetes file "rethinkdb-claim0-persistentvolumeclaim.yaml" created

1 个答案:

答案 0 :(得分:0)

Kompose不支持主机卷安装,因此您可以看到不支持卷挂载的日志。我的建议是手动创建卷并放置相应的数据。例如,conf&深度服务中的var文件。