I want to use mongoconnector in kubernetes i found this
$ docker run -d --link=mongo:mongo --link=elasticsearch:elasticsearch yeasy/mongo-connector
The question is how i can run it in kubernetes
答案 0 :(得分:0)
这将在kubernetes是业务流程引擎时运行docker映像。您必须将此Docker映像上传到Docker Hub或检查它是否在Docker Hub上可用。
因此在Kubernetes上,您可以使用清单文件运行此docker映像。
apiVersion: v1
kind: Deployment
metadata:
name: mongoconnector
labels:
name: mongoconnector
spec:
selector:
matchlabels:
name: mongoconnector
template:
metadata:
lables:
name: mongoconnector
spec:
containers:
- name: mongo
image: <DOCKER IMAGE>
答案 1 :(得分:0)
这是另一个示例,说明如何在Kubernetes集群上将连接器作为服务运行。
https://medium.com/devopslinks/scaling-mongodb-on-kubernetes-32e446c16b82
答案 2 :(得分:0)
对于ElasticSearch 7支持,Monstache项目看起来很合适 https://rwynn.github.io/monstache-site/
他们发布docker映像 https://hub.docker.com/r/rwynn/monstache