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
734 stars 207 forks source link

no matches for kind "RedisCluster" in version "redis.redis.opstreelabs.in/v1beta2" #886

Closed tuanzi1990 closed 2 months ago

tuanzi1990 commented 2 months ago

Thx for awesome operator

This commands helm upgrade redis-cluster ot-helm/redis-cluster \ --set redisCluster.clusterSize=3 \ --install --namespace ot-operators

Gave me this error, what I am doing wrong? Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "redis-cluster" namespace: "" from "": no matches for kind "RedisCluster" in version "redis.redis.opstreelabs.in/v1beta2" ensure CRDs are installed first

My version of k8s is v1.27.12, The version I'm using is redis-operator-0.15.9 && redis-cluster-0.15.11 I have installed the latest crd

kubectl apply -f config/crd/bases/ --server-side [root@k8s-master01 redis-cluster]# kubectl get crd NAME CREATED AT redis.redis.redis.opstreelabs.in 2024-04-21T08:07:22Z redisclusters.redis.redis.opstreelabs.in 2024-04-21T08:07:22Z redisreplications.redis.redis.opstreelabs.in 2024-04-21T08:08:27Z redissentinels.redis.redis.opstreelabs.in 2024-04-21T08:07:22Z

tuanzi1990 commented 2 months ago

I've solved it, the cause was caused by me forcibly deleting the crd and there was data left over, my cluster is working fine now :)