Skip to content

Commit

Permalink
fix: k8s client QPS (#602)
Browse files Browse the repository at this point in the history
Signed-off-by: Jasmin Gacic <jasmin.gacic@gmail.com>
  • Loading branch information
jasmingacic authored Nov 29, 2021
1 parent 43f2d9a commit f7c182a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/k8sclient/k8sclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func ConnectToK8s() (*kubernetes.Clientset, error) {
config, err = clientcmd.BuildConfigFromFlags("", cubeConfigPath)
} else {
config, err = rest.InClusterConfig()
config.QPS = 40.0
config.Burst = 400.0
}

if err != nil {
Expand Down

0 comments on commit f7c182a

Please sign in to comment.