From 9df5b3995f6c415fa13c4206f01765f1d7d40a50 Mon Sep 17 00:00:00 2001 From: Paul Weil Date: Thu, 23 Apr 2015 12:21:11 -0400 Subject: [PATCH] enable stats listener for haproxy --- images/router/haproxy/conf/haproxy-config.template | 8 ++++++++ pkg/cmd/experimental/router/router.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/images/router/haproxy/conf/haproxy-config.template b/images/router/haproxy/conf/haproxy-config.template index c267867265ff..6ef1e0e47aff 100644 --- a/images/router/haproxy/conf/haproxy-config.template +++ b/images/router/haproxy/conf/haproxy-config.template @@ -23,6 +23,14 @@ defaults # Long timeout for WebSocket connections. timeout tunnel 1h +listen stats :1936 + mode http + stats enable + stats hide-version + stats realm Haproxy\ Statistics + stats uri / + stats auth admin:cEVu2hUb + frontend public bind :80 mode http diff --git a/pkg/cmd/experimental/router/router.go b/pkg/cmd/experimental/router/router.go index 5af0cf00ce1b..2258a7948b57 100644 --- a/pkg/cmd/experimental/router/router.go +++ b/pkg/cmd/experimental/router/router.go @@ -74,7 +74,7 @@ func NewCmdRouter(f *clientcmd.Factory, parentName, name string, out io.Writer) ImageTemplate: variable.NewDefaultImageTemplate(), Labels: defaultLabel, - Ports: "80:80,443:443", + Ports: "80:80,443:443,1936:1936", Replicas: 1, }