Skip to content

Commit cfdf1b7

Browse files
committed
Query-frontend: Fix connection to Redis with TLS.
Issue: #7672 Signed-off-by: didukh86 <[email protected]> Signed-off-by: didukh86 <[email protected]> Signed-off-by: didukh86 <[email protected]>
1 parent 8d3d34b commit cfdf1b7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pkg/queryfrontend/config.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,15 @@ func NewCacheConfig(logger log.Logger, confContentYaml []byte) (*cortexcache.Con
162162
}
163163
return &cortexcache.Config{
164164
Redis: cortexcache.RedisConfig{
165-
Endpoint: config.Redis.Addr,
166-
Timeout: config.Redis.ReadTimeout,
167-
MasterName: config.Redis.MasterName,
168-
Expiration: config.Expiration,
169-
DB: config.Redis.DB,
170-
Password: flagext.Secret{Value: config.Redis.Password},
171-
Username: config.Redis.Username,
165+
Endpoint: config.Redis.Addr,
166+
Timeout: config.Redis.ReadTimeout,
167+
MasterName: config.Redis.MasterName,
168+
Expiration: config.Expiration,
169+
DB: config.Redis.DB,
170+
Password: flagext.Secret{Value: config.Redis.Password},
171+
Username: config.Redis.Username,
172+
EnableTLS: config.Redis.TLSEnabled,
173+
InsecureSkipVerify: config.Redis.TLSConfig.InsecureSkipVerify,
172174
},
173175
Background: cortexcache.BackgroundConfig{
174176
WriteBackBuffer: config.Redis.MaxSetMultiConcurrency * config.Redis.SetMultiBatchSize,

0 commit comments

Comments
 (0)