简体   繁体   中英

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. 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?

Nomad does service discovery using HashiCorp Consul. Check out this part of Nomad docs. https://www.nomadproject.io/docs/integrations/consul-integration/#service-discovery

There are few types of service discoveries in nomad.

  • using Consul which is by default
  • a simpler solution is provider="nomad"
  • consul connect

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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