first helm test
All checks were successful
the build was successful

This commit is contained in:
ston1th 2019-01-18 20:23:46 +01:00
commit 951fc96548
7 changed files with 297 additions and 3 deletions

4
srv.go
View file

@ -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,