Skip to content

Commit

Permalink
Query-frontend: Fix connection to Redis with TLS.
Browse files Browse the repository at this point in the history
Issue: thanos-io#7672

Signed-off-by: didukh86 <[email protected]>
Signed-off-by: didukh86 <[email protected]>
Signed-off-by: didukh86 <[email protected]>
Signed-off-by: Taras Didukh <[email protected]>
  • Loading branch information
didukh86 authored and Taras Didukh committed Sep 4, 2024
1 parent 8d3d34b commit 52d84eb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkg/queryfrontend/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,15 @@ func NewCacheConfig(logger log.Logger, confContentYaml []byte) (*cortexcache.Con
}
return &cortexcache.Config{
Redis: cortexcache.RedisConfig{
Endpoint: config.Redis.Addr,
Timeout: config.Redis.ReadTimeout,
MasterName: config.Redis.MasterName,
Expiration: config.Expiration,
DB: config.Redis.DB,
Password: flagext.Secret{Value: config.Redis.Password},
Username: config.Redis.Username,
Endpoint: config.Redis.Addr,
Timeout: config.Redis.ReadTimeout,
MasterName: config.Redis.MasterName,
Expiration: config.Expiration,
DB: config.Redis.DB,
Password: flagext.Secret{Value: config.Redis.Password},
Username: config.Redis.Username,
EnableTLS: config.Redis.TLSEnabled,
InsecureSkipVerify: config.Redis.TLSConfig.InsecureSkipVerify,
},
Background: cortexcache.BackgroundConfig{
WriteBackBuffer: config.Redis.MaxSetMultiConcurrency * config.Redis.SetMultiBatchSize,
Expand Down

0 comments on commit 52d84eb

Please sign in to comment.