Rewrote guestbook-go example to use kube-dns

This is follow up of #5284.

I also built a new kubernetes/guestbook:v2 image.
This commit is contained in:
Piotr Szczesniak
2015-03-18 12:01:58 +01:00
parent 2a9c3080ed
commit ff0316dd71
12 changed files with 20 additions and 18 deletions

View File

@@ -71,7 +71,7 @@ func HandleError(result interface{}, err error) (r interface{}) {
}
func main() {
pool = simpleredis.NewConnectionPoolHost(os.Getenv("REDIS_MASTER_SERVICE_HOST") + ":" + os.Getenv("REDIS_MASTER_SERVICE_PORT"))
pool = simpleredis.NewConnectionPoolHost("redis-master:6379")
defer pool.Close()
r := mux.NewRouter()