fernandohackbart / bikeride-lagom

Sample Bike Ride application backend to learn Lagom
Other
4 stars 2 forks source link

Kubernetes optimization: Review DNS translators rules #170

Closed fernandohackbart closed 7 years ago

fernandohackbart commented 7 years ago
service-locator-dns {
  name-translators = [
    {
#      "cas_native" = ${bikeride.cassandra.service},
      "biker" = "_lagom._tcp.bikeride-biker."${bikeride.service.domain},
      "ride" = "_lagom._tcp.bikeride-ride."${bikeride.service.domain},
      "track" = "_lagom._tcp.bikeride-track."${bikeride.service.domain}
    #{ "^_.+$"   = "$0" },
    #{ "^[^.]+$" = "_http-lagom-api._tcp.$0.default.svc.cluster.local" },
    #{ "^.*$"    = "$0"}

    }
  ]
  name-translators = ${?SERVICE_LOCATOR_DNS_NAME_TRANSLATORS}

  srv-translators = [
    {
      #"^_http-lagom-api[.]_tcp[.](.+)$" = "_http-lagom-api._http.$1",
      #"^.*$" = "$0"
      "^_lagom[.]_tcp[.](.+)$" = "_lagom._http.$1"
    }
  ]
  srv-translators = ${?SERVICE_LOCATOR_DNS_SRV_TRANSLATORS}

  resolve-timeout1 = 2 second
  resolve-timeout2 = 3 seconds
}
fernandohackbart commented 7 years ago

The change to the chirper format was changed and works fine so far...