Skip to content

Instantly share code, notes, and snippets.

@ghabxph
Last active November 9, 2020 02:38
Show Gist options
  • Save ghabxph/fe8acc85429147d475d31408a9b46764 to your computer and use it in GitHub Desktop.
Save ghabxph/fe8acc85429147d475d31408a9b46764 to your computer and use it in GitHub Desktop.
consul.md

Consul

Commands

  • consul members
  • consul catalog
  • consul catalog nodes
  • consul catalog services

Questions

  • Consul is the key for nomad nodes to be able to communicate. Or nomad nodes can already communicate without Consul?
  • I see that adding catalog, we indicate port. Does it imply that if port is not specified, we cannot access that service with different port?
    • Consul just act like DNS. So once service is open to other, it can access other services' port.
  • Does nomad communicate with each other?
  • Can consul be used in Kubernetes?
  • How do you use Consul and Pihole at the same time?
  • Consul acts as DNS? Correct?
  • Consul opens port to specific domain name. Correct?

Facts

  • Consul - Like DNS with Network Discovery
  • Consul allows multi-datacenter
  • Adding something in catalog creates a domain something like:
    • web.services.consul --> accessing web services
    • pihole.services.consul --> accessing pihole
  • Consul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment