简体   繁体   English

如何在 Hashicorp Nomad 中连接前端应用程序和数据库应用程序?

[英]How to connect front-end application with database application in Hashicorp Nomad?

I am new to Hashicorp Nomad and trying to deploy one employee application, I have the code in kubernetes yaml file.我是 Hashicorp Nomad 的新手,正在尝试部署一个员工应用程序,我在 kubernetes yaml 文件中有代码。 Seperately I deployed frontend application with mongo database but I want to know how these two will contact each other because in k8s there is a concept of Selector but in Nomad what is available in behalf of selector and labels?我单独部署了带有 mongo 数据库的前端应用程序,但我想知道这两者将如何相互联系,因为在 k8s 中有一个选择器的概念,但在 Nomad 中有什么可以代表选择器和标签?

Nomad does service discovery using HashiCorp Consul. Nomad 使用 HashiCorp Consul 进行服务发现。 Check out this part of Nomad docs.查看 Nomad 文档的这一部分。 https://www.nomadproject.io/docs/integrations/consul-integration/#service-discovery https://www.nomadproject.io/docs/integrations/consul-integration/#service-discovery

There are few types of service discoveries in nomad. Nomad 中的服务发现类型很少。

  • using Consul which is by default默认情况下使用 Consul
  • a simpler solution is provider="nomad"一个更简单的解决方案是 provider="nomad"
  • consul connect领事连接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM