Deepstream.io в кластере Kubernetes

Можно ли развернуть DeepStream и Redis в многоузловом кластере с помощью Kubernetes?

Опция Docker Compose доступна в DeepStreamHub (https://deepstreamhub.com/open-source/install/docker-compose/), но не нашел вариант Kubernetes YAML.

Содержимое файла docker compose DeepStream + Redis + RethinkDB:

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: Я попытался преобразовать docker-compose.yml в Kubernetes YAML с помощью kompose, но получил следующие предупреждения:

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

person Sheik-Masha    schedule 16.11.2017    source источник


Ответы (1)


Kompose не поддерживает монтирование тома хоста, следовательно, вы можете увидеть журналы, в которых монтирование тома не поддерживается. Я предлагаю создавать тома вручную и вводить соответствующие данные. например, conf & var файл в глубоком сервисе.

person Suraj Narwade    schedule 01.12.2017