mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Remove unused api-rate and api-burst params.
This commit is contained in:
parent
9e59ceaa06
commit
f0d0e2a089
@ -68,8 +68,6 @@ type APIServer struct {
|
|||||||
AdvertiseAddress net.IP
|
AdvertiseAddress net.IP
|
||||||
SecurePort int
|
SecurePort int
|
||||||
ExternalHost string
|
ExternalHost string
|
||||||
APIRate float32
|
|
||||||
APIBurst int
|
|
||||||
TLSCertFile string
|
TLSCertFile string
|
||||||
TLSPrivateKeyFile string
|
TLSPrivateKeyFile string
|
||||||
CertDirectory string
|
CertDirectory string
|
||||||
@ -122,8 +120,6 @@ func NewAPIServer() *APIServer {
|
|||||||
InsecureBindAddress: net.ParseIP("127.0.0.1"),
|
InsecureBindAddress: net.ParseIP("127.0.0.1"),
|
||||||
BindAddress: net.ParseIP("0.0.0.0"),
|
BindAddress: net.ParseIP("0.0.0.0"),
|
||||||
SecurePort: 6443,
|
SecurePort: 6443,
|
||||||
APIRate: 10.0,
|
|
||||||
APIBurst: 200,
|
|
||||||
APIPrefix: "/api",
|
APIPrefix: "/api",
|
||||||
ExpAPIPrefix: "/experimental",
|
ExpAPIPrefix: "/experimental",
|
||||||
EventTTL: 1 * time.Hour,
|
EventTTL: 1 * time.Hour,
|
||||||
@ -176,8 +172,6 @@ func (s *APIServer) AddFlags(fs *pflag.FlagSet) {
|
|||||||
fs.IntVar(&s.SecurePort, "secure-port", s.SecurePort, ""+
|
fs.IntVar(&s.SecurePort, "secure-port", s.SecurePort, ""+
|
||||||
"The port on which to serve HTTPS with authentication and authorization. If 0, "+
|
"The port on which to serve HTTPS with authentication and authorization. If 0, "+
|
||||||
"don't serve HTTPS at all.")
|
"don't serve HTTPS at all.")
|
||||||
fs.Float32Var(&s.APIRate, "api-rate", s.APIRate, "API rate limit as QPS for the read only port")
|
|
||||||
fs.IntVar(&s.APIBurst, "api-burst", s.APIBurst, "API burst amount for the read only port")
|
|
||||||
fs.StringVar(&s.TLSCertFile, "tls-cert-file", s.TLSCertFile, ""+
|
fs.StringVar(&s.TLSCertFile, "tls-cert-file", s.TLSCertFile, ""+
|
||||||
"File containing x509 Certificate for HTTPS. (CA cert, if any, concatenated after server cert). "+
|
"File containing x509 Certificate for HTTPS. (CA cert, if any, concatenated after server cert). "+
|
||||||
"If HTTPS serving is enabled, and --tls-cert-file and --tls-private-key-file are not provided, "+
|
"If HTTPS serving is enabled, and --tls-cert-file and --tls-private-key-file are not provided, "+
|
||||||
|
@ -52,9 +52,7 @@ cluster's shared state through which all other components interact.
|
|||||||
--admission-control-config-file="": File with admission control configuration.
|
--admission-control-config-file="": File with admission control configuration.
|
||||||
--advertise-address=<nil>: The IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster. If blank, the --bind-address will be used. If --bind-address is unspecified, the host's default interface will be used.
|
--advertise-address=<nil>: The IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster. If blank, the --bind-address will be used. If --bind-address is unspecified, the host's default interface will be used.
|
||||||
--allow-privileged=false: If true, allow privileged containers.
|
--allow-privileged=false: If true, allow privileged containers.
|
||||||
--api-burst=0: API burst amount for the read only port
|
|
||||||
--api-prefix="": The prefix for API requests on the server. Default '/api'.
|
--api-prefix="": The prefix for API requests on the server. Default '/api'.
|
||||||
--api-rate=0: API rate limit as QPS for the read only port
|
|
||||||
--authorization-mode="": Selects how to do authorization on the secure port. One of: AlwaysAllow,AlwaysDeny,ABAC
|
--authorization-mode="": Selects how to do authorization on the secure port. One of: AlwaysAllow,AlwaysDeny,ABAC
|
||||||
--authorization-policy-file="": File with authorization policy in csv format, used with --authorization-mode=ABAC, on the secure port.
|
--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.
|
--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.
|
||||||
|
@ -8,9 +8,7 @@ algorithm-provider
|
|||||||
all-namespaces
|
all-namespaces
|
||||||
allocate-node-cidrs
|
allocate-node-cidrs
|
||||||
allow-privileged
|
allow-privileged
|
||||||
api-burst
|
|
||||||
api-prefix
|
api-prefix
|
||||||
api-rate
|
|
||||||
api-servers
|
api-servers
|
||||||
api-token
|
api-token
|
||||||
api-version
|
api-version
|
||||||
|
Loading…
Reference in New Issue
Block a user