Separate healthz server from metrics server in kube-proxy

- /healthz will be served on 0.0.0.0:10256 by default.
- /metrics and /proxyMode will be served on port 10249
  as before.
- Healthz handler will verify timestamp in iptables mode.
This commit is contained in:
Zihong Zheng
2017-05-05 14:43:41 -07:00
parent eed08362d8
commit ca59d909cf
7 changed files with 54 additions and 16 deletions

View File

@@ -22,7 +22,6 @@ import (
"github.com/spf13/pflag"
"k8s.io/apiserver/pkg/server/healthz"
utilflag "k8s.io/apiserver/pkg/util/flag"
"k8s.io/apiserver/pkg/util/logs"
"k8s.io/kubernetes/cmd/kube-proxy/app"
@@ -32,8 +31,6 @@ import (
)
func main() {
healthz.DefaultHealthz()
command := app.NewProxyCommand()
// TODO: once we switch everything over to Cobra commands, we can go back to calling