Orion不在Kubernetes上使用Fiware服务
我在Kubernetes上使用Orion遇到了一个奇怪的问题。当使用Orion 2.5(也发生在3.6中)和MongoDB 4.4在Docker-Compose上,一切都可以按预期工作,我能够在Orion中创建和检索实体,并且它们在具有专有名称的数据库中正确创建是服务,数据库是Orion-Service)。
但是,在Kubernetes中使用相同的操作,在Orion中使用相同的命令,所有内容以相同的方式配置,它忽略了服务。我可以在日志中看到Orion接收服务和服务路径
time=2022-04-29T12:20:44.125Z | lvl=INFO | corr=cac0239e-c7b6-11ec-abd6-f6ce73396b62 | trans=1651234819-423-00000000003 | from=127.0.0.1 | srv=acc1234121 | subsrv=/asd | comp=Orion | op=logTracing.cpp[148]:logInfoRequestWithPayload | msg=Request received: POST /v2/entities, request payload (288 bytes)
,但是它在Orion数据库中创建实体(在这种情况下,它将是Orion-ACC1234121)。
您能否提供一些有关如何调试问题的见解,如果我缺少一些配置?
谢谢
更新:我们终于弄清楚了这个问题。在图表中,我们无法正确设置多级服务选项,因此将其设置为false。关键是我们无法在执行的命令(PS命令的输出)或环境变量中看到它。无论如何,非常感谢您的帮助,我们可以将其标记为封闭和解决。
I'm having a weird issue using Orion on Kubernetes. When using Orion 2.5 (also happens with 3.6) and MongoDB 4.4 on Docker-Compose, everything works as expected, I'm able to create and retrieve entities in Orion and they are created properly in databases with the proper name (if fiware-service is service, the database is orion-service).
However, using the same in Kubernetes, with the same commands in Orion and everything configured the same way, it ignores the service. I can see in the logs that Orion receives the service and service-path
time=2022-04-29T12:20:44.125Z | lvl=INFO | corr=cac0239e-c7b6-11ec-abd6-f6ce73396b62 | trans=1651234819-423-00000000003 | from=127.0.0.1 | srv=acc1234121 | subsrv=/asd | comp=Orion | op=logTracing.cpp[148]:logInfoRequestWithPayload | msg=Request received: POST /v2/entities, request payload (288 bytes)
However, it creates the entity in the orion database (without using the -service, which would be orion-acc1234121 in this case).
Could you provide some insights on how to debug the issue and if there is some configuration I'm missing?
Thanks
UPDATE: We finally figured out the issue. In the chart, we were not setting properly the multiservice option, so it was set to false. The point is we are not able to see it neither in the command executed (output of ps command) nor in the environment variables. Anyway, thank you very much for your help, we can mark this as closed and solved.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论