Discovering Services

Discovering Services using DNS and environment variables

Services can be discovered through two principal modes:

  • Environment variables
  • DNS

Every Pod gets environment variables for each of the active Services. They are provided in the same format as what Docker links expect, as well as with the simpler Kubernetes-specific syntax.

Get hands-on with 1200+ tech skills courses.