Skip to content

Commit

Permalink
use round robin to distribute requests to all repo server pods
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus committed Jan 14, 2025
1 parent 38a515c commit 8a3c4de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/argo_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func NewArgoClient(
log.Info().Msg("creating client")
tlsConfig := tls.Config{InsecureSkipVerify: cfg.ArgoCDRepositoryInsecure}
conn, err := grpc.NewClient(cfg.ArgoCDRepositoryEndpoint,
// without this, kubechecks picks a single pod and sends all requests to it
grpc.WithDefaultServiceConfig(`{"loadBalancingConfig": [{"round_robin":{}}]}`),
grpc.WithTransportCredentials(
credentials.NewTLS(&tlsConfig),
),
Expand Down

0 comments on commit 8a3c4de

Please sign in to comment.