frontend: temporarily add a port 8090 for healthz in mTLS

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-15 21:28:55 -07:00
parent 021660bb95
commit 7b35fb1291

View file

@ -20,6 +20,7 @@ import (
const (
port = "8080"
secondaryPort = "8090" // TODO(ahmetb) remove this, currently used by health checks in Istio mTLS case.
defaultCurrency = "USD"
cookieMaxAge = 60 * 60 * 48
@ -107,6 +108,7 @@ func main() {
Propagation: &b3.HTTPFormat{}}
log.Infof("starting server on " + addr + ":" + srvPort)
go log.Fatal(http.ListenAndServe(addr+":"+secondaryPort, handler))
log.Fatal(http.ListenAndServe(addr+":"+srvPort, handler))
}