From 387d861d4e4084d876cd3b1c39a6050161de4ed6 Mon Sep 17 00:00:00 2001 From: He Simei Date: Thu, 3 Dec 2015 09:52:32 +0800 Subject: [PATCH] deprecate confusing flag usage --- cmd/kube-apiserver/app/server.go | 2 +- docs/admin/kube-apiserver.md | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/kube-apiserver/app/server.go b/cmd/kube-apiserver/app/server.go index 12c86e28bd734..c7e7c93b1782e 100644 --- a/cmd/kube-apiserver/app/server.go +++ b/cmd/kube-apiserver/app/server.go @@ -185,7 +185,7 @@ func (s *APIServer) AddFlags(fs *pflag.FlagSet) { fs.IPVar(&s.InsecureBindAddress, "address", s.InsecureBindAddress, "DEPRECATED: see --insecure-bind-address instead") fs.MarkDeprecated("address", "see --insecure-bind-address instead") fs.IPVar(&s.BindAddress, "bind-address", s.BindAddress, ""+ - "The IP address on which to serve the --read-only-port and --secure-port ports. The "+ + "The IP address on which to listen for the --secure-port port. The "+ "associated interface(s) must be reachable by the rest of the cluster, and by CLI/web "+ "clients. If blank, all interfaces will be used (0.0.0.0).") fs.IPVar(&s.AdvertiseAddress, "advertise-address", s.AdvertiseAddress, ""+ diff --git a/docs/admin/kube-apiserver.md b/docs/admin/kube-apiserver.md index bac837a0e44e2..68563c39ecea0 100644 --- a/docs/admin/kube-apiserver.md +++ b/docs/admin/kube-apiserver.md @@ -57,7 +57,7 @@ kube-apiserver --authorization-mode="AlwaysAllow": Ordered list of plug-ins to do authorization on secure port. Comma-delimited list of: AlwaysAllow,AlwaysDeny,ABAC --authorization-policy-file="": File with authorization policy in csv format, used with --authorization-mode=ABAC, on the secure port. --basic-auth-file="": If set, the file that will be used to admit requests to the secure port of the API server via http basic authentication. - --bind-address=0.0.0.0: The IP address on which to serve the --read-only-port and --secure-port ports. The associated interface(s) must be reachable by the rest of the cluster, and by CLI/web clients. If blank, all interfaces will be used (0.0.0.0). + --bind-address=0.0.0.0: The IP address on which to listen for the --secure-port port. The associated interface(s) must be reachable by the rest of the cluster, and by CLI/web clients. If blank, all interfaces will be used (0.0.0.0). --cert-dir="/var/run/kubernetes": The directory where the TLS certs are located (by default /var/run/kubernetes). If --tls-cert-file and --tls-private-key-file are provided, this flag will be ignored. --client-ca-file="": If set, any request presenting a client certificate signed by one of the authorities in the client-ca-file is authenticated with an identity corresponding to the CommonName of the client certificate. --cloud-config="": The path to the cloud provider configuration file. Empty string for no configuration file. @@ -107,6 +107,9 @@ kube-apiserver --watch-cache[=true]: Enable watch caching in the apiserver ``` +###### Auto generated by spf13/cobra on 3-Dec-2015 + + [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/admin/kube-apiserver.md?pixel)]()