kubernetes - 使用 Redis 处理程序在 Istio 中进行速率限制

标签 kubernetes istio

我正在尝试使用 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/

相关文章:

docker - 直接从同一网络中的机器访问 kubernetes pod

kubernetes - 如何列出同类部署?

kubernetes - 通过入口 Controller 访问服务时,x-b3-sampled header 始终设置为 0

kubernetes - 使用 istio 连接到 Nodejs TLS 服务器时出现 NR filter_chain_not_found

kubernetes - CommonAnnotations 不适用于 AlertManager

kubernetes - EKS - 调用 webhook 失败 "vingress.elbv2.k8s.aws"

azure - 有没有办法从外部或浏览器访问/获取 AKS(Azure kubernetes 服务)的应用程序日志?

ssl - 外部服务的 Istio 直通不起作用

Azure kubernetes - Istio 和多​​个 kubernetes 应用程序?

python - 如何从 Python 将竖线 (|) 添加到 yaml 文件中