File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 68
68
openStackClusterConcurrency int
69
69
openStackMachineConcurrency int
70
70
syncPeriod time.Duration
71
+ restConfigQPS float32
72
+ restConfigBurst int
71
73
webhookPort int
72
74
webhookCertDir string
73
75
healthAddr string
@@ -126,6 +128,12 @@ func InitFlags(fs *pflag.FlagSet) {
126
128
fs .DurationVar (& syncPeriod , "sync-period" , 10 * time .Minute ,
127
129
"The minimum interval at which watched resources are reconciled (e.g. 15m)" )
128
130
131
+ fs .Float32Var (& restConfigQPS , "kube-api-qps" , 20 ,
132
+ "Maximum queries per second from the controller client to the Kubernetes API server. Defaults to 20" )
133
+
134
+ fs .IntVar (& restConfigBurst , "kube-api-burst" , 30 ,
135
+ "Maximum number of queries that should be allowed in one burst from the controller client to the Kubernetes API server. Defaults to 30" )
136
+
129
137
fs .IntVar (& webhookPort , "webhook-port" , 9443 ,
130
138
"Webhook Server port" )
131
139
@@ -179,6 +187,8 @@ func main() {
179
187
if err != nil {
180
188
setupLog .Error (err , "unable to get kubeconfig" )
181
189
}
190
+ cfg .QPS = restConfigQPS
191
+ cfg .Burst = restConfigBurst
182
192
183
193
var caCerts []byte
184
194
if caCertsPath != "" {
You can’t perform that action at this time.
0 commit comments