[英]Deepstream.io on Kubernetes cluster
Is it possible to deploy DeepStream and Redis on multi-node cluster using Kubernetes? 是否可以使用Kubernetes在多节点集群上部署DeepStream和Redis?
Docker Compose option is available in DeepStreamHub ( https://deepstreamhub.com/open-source/install/docker-compose/ ) but not finding Kubernetes YAML option. DeepStreamHub( https://deepstreamhub.com/open-source/install/docker-compose/ )中提供了Docker Compose选项,但没有找到Kubernetes YAML选项。
The DeepStream + Redis + RethinkDB docker compose file content is: 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: I tried to convert docker-compose.yml to Kubernetes YAMLs using kompose, but received following warnings: 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
Kompose doesn't support host volume mounting, Hence you can see logs that volume mount isn't supported. Kompose不支持主机卷挂载,因此您可以看到不支持卷挂载的日志。 My suggestions is create volumes manually and put respective data.
我的建议是手动创建卷并放入相应的数据。 for example,
conf
& var
file in deepstream service. 例如,深度流服务中的
conf
和var
文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.