frontend: temporarily add a port 8090 for healthz in mTLS
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
021660bb95
commit
7b35fb1291
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
port = "8080"
|
port = "8080"
|
||||||
|
secondaryPort = "8090" // TODO(ahmetb) remove this, currently used by health checks in Istio mTLS case.
|
||||||
defaultCurrency = "USD"
|
defaultCurrency = "USD"
|
||||||
cookieMaxAge = 60 * 60 * 48
|
cookieMaxAge = 60 * 60 * 48
|
||||||
|
|
||||||
|
@ -107,6 +108,7 @@ func main() {
|
||||||
Propagation: &b3.HTTPFormat{}}
|
Propagation: &b3.HTTPFormat{}}
|
||||||
|
|
||||||
log.Infof("starting server on " + addr + ":" + srvPort)
|
log.Infof("starting server on " + addr + ":" + srvPort)
|
||||||
|
go log.Fatal(http.ListenAndServe(addr+":"+secondaryPort, handler))
|
||||||
log.Fatal(http.ListenAndServe(addr+":"+srvPort, handler))
|
log.Fatal(http.ListenAndServe(addr+":"+srvPort, handler))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue