OT-CONTAINER-KIT / redis-operator

A golang based redis operator that will make/oversee Redis standalone/cluster/replication/sentinel mode setup on top of the Kubernetes.
https://ot-redis-operator.netlify.app/
Apache License 2.0
731 stars 207 forks source link

kube-api log ListAndWatch error: failed to list redis.redis.opstreelabs.in/v1beta1, Kind=RedisReplication: conversion webhook for redis.redis.opstreelabs.in/v1beta2 #955

Open ktzsolt opened 1 month ago

ktzsolt commented 1 month ago

What version of redis operator are you using?

redis-operator chart 0.15.10 version from https://ot-container-kit.github.io/helm-charts

Does this issue reproduce with the latest release?

latest helm chart is not available, only 0.15.10. Latest image published to quay is 0.15.1

What did you do?

helm repo add ot-container-kit  https://ot-container-kit.github.io/helm-charts/
helm upgrade --install redis-operator ot-container-kit/redis-operator --version 0.15.10 --namespace redis-operator --create-namespace  

What did you expect to see?

No errors by the kube-api pods

What did you see instead?

E0529 10:31:11.738631 1 cacher.go:470] cacher (redisreplications.redis.redis.opstreelabs.in): unexpected ListAndWatch error: failed to list redis.redis.opstreelabs.in/v1beta1, Kind=RedisReplication: conversion webhook for redis.redis.opstreelabs.in/v1beta2, Kind=RedisReplication failed: Post "https://webhook-service.redis-operator.svc:443/convert?timeout=30s": proxy error from 127.0.0.1:9345 while dialing 10.42.118.14:9443, code 502: 502 Bad Gateway; reinitializing...

MoZadro commented 2 weeks ago

We had same issue on multiple clusters, redis operator helm chart version 0.15.9

We edited redis crd's:

redis.redis.redis.opstreelabs.in
redisclusters.redis.redis.opstreelabs.in
redisreplications.redis.redis.opstreelabs.in
redissentinels.redis.redis.opstreelabs.in

And deleted this part:

conversion:
    strategy: Webhook
    webhook:
      clientConfig:
        service:
          name: webhook-service
          namespace: redis-operator
          path: /convert
          port: 443
      conversionReviewVersions:
      - v1beta1
      - v1beta2