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