我正在尝试使用 Redis Handler ISTIO 使用 Redis 处理程序应用 ISTIO 速率限制
但是混合器无法找到 redis 处理程序。以下来自混音器日志:
2019-05-27T11:59:23.910183Z warn Unable to find a handler for action. rule[action]='quota.rule.istio-system[0]', handler='redishandler.istio-system'
- redisquota: could not create a connection to redis server: NOAUTH Authentication required.''. Also, how to provide Redis credential for the template?
最佳答案
redis 配额不支持 Authentication
// test redis connection
option := redis.Options{
Addr: b.adapterConfig.RedisServerUrl,
}
if b.adapterConfig.ConnectionPoolSize > 0 {
option.PoolSize = int(b.adapterConfig.ConnectionPoolSize)
}
https://github.com/istio/istio/redisquota.go
关于kubernetes - 使用 Redis 处理程序在 Istio 中进行速率限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56326044/