parent
d33d6e55ce
commit
951fc96548
7 changed files with 297 additions and 3 deletions
4
srv.go
4
srv.go
|
|
@ -27,9 +27,7 @@ func main() {
|
|||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
//url := "http://" + os.Getenv("DB_SERVICE_HOST") + ":" + os.Getenv("DB_SERVICE_PORT")
|
||||
//url := "http://testapp-db.default.svc.cluster.local:8080"
|
||||
url := "http://testapp-db:8080"
|
||||
url := "http://" + os.Getenv("DB_HOST")
|
||||
c := &http.Client{Transport: &http.Transport{
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 5 * time.Second,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue