charts
charts copied to clipboard
k8 pods are not created in redis-cluster helm chart
Name and Version
bitnami/redis-cluster , 7.6.4
What steps will reproduce the bug?
installing helm chart
Are you using any custom parameters or values?
cluster.externalAcess.enbled=true
What is the expected behavior?
pods should be created
What do you see instead?
no pods are created and external ip also remains pending
Additional information
No response
Hi,
If the external IP is pending, then it seems to me that there kubernetes cluster is missing the proper external IP configuration. Which cluster are you using?
minikube
Hi,
In this case, you need to enable addons like metallb in order to have external IPs. This link should help you https://faun.pub/metallb-configuration-in-minikube-to-enable-kubernetes-service-of-type-loadbalancer-9559739787df
hi, i tried your suggestion and it is working fine . nodes are connecting to each other. But now dump.rdb file is not craeted in /bitnami/redis/data directory

if i remove cluster.externalAccess.enabled =true then dump.rdb file is created
also many masters are not allotted any slots .

i am only able to understand that the cluster is not created properly . can you tell the reason
Steps i did -
- install helm chart using externalacess.enabled =true parameter
- when i go inside the pod and execute redis-cli , i shows only one nodes. so i sent cluster meet command to connect to other nodes.
- when i tried using redis-cli to set the keys it show clusterdown hashslot not served. to solve it , i used (redis-cli --cluster fix) command to solve it
- now probelems which i am facing is that all the nodes are now masters and some nodes have no slot allocated and dump.rdb file is not created

Hi @abhishekgupta2205
When externalacess.enabled =true you need to perform some additional steps to set the external IPs. These steps are exposed in the notes after installing the helm chart. Example:
$ helm install redis-cluster bitnami/redis-cluster --version 7.6.4 --set cluster.externalAccess.enabled=true
NAME: redis-cluster
LAST DEPLOYED: Fri Jul 15 10:14:14 2022
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: redis-cluster
CHART VERSION: 7.6.4
APP VERSION: 6.2.7** Please be patient while the chart is being deployed **
To get your password run:
export REDIS_PASSWORD=$(kubectl get secret --namespace "default" redis-cluster -o jsonpath="{.data.redis-password}" | base64 -d)
To connect to your Redis® server from outside the cluster check the following information:
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
Watch the status with: 'kubectl get svc --namespace default -w redis-cluster'
You will have a different external IP for each Redis® node. Get the external ip from `-external` suffixed services: `kubectl get svc`.
Redis® port: 6379
Once the LoadBalancerIPs are ready, you need to provide them and perform a Helm Upgrade:
helm upgrade --namespace default redis-cluster --set "cluster.externalAccess.enabled=true,cluster.externalAccess.service.type=LoadBalancer,cluster.externalAccess.service.loadBalancerIP[0]=load-balancerip-0,cluster.externalAccess.service.loadBalancerIP[1]=load-balancerip-1,cluster.externalAccess.service.loadBalancerIP[2]=load-balancerip-2,cluster.externalAccess.service.loadBalancerIP[3]=load-balancerip-3,cluster.externalAccess.service.loadBalancerIP[4]=load-balancerip-4,cluster.externalAccess.service.loadBalancerIP[5]=load-balancerip-5" bitnami/redis-cluster
Where loadbalancer-ip-i are the LoadBalancerIPs provided by the cluster.
hi @fmulero i tried connecting to individual redis nodes through redis-cli by using external ip and nodeport provided , but could not connect to it.
But i am able to connect through redis-cluster svc. is there any error or am i missing something.

sir, external ip is also not created in kubernetes cluster. is there any alternate like metallb addon in minikube that i can use on kubernetes cluster so that external ip is created there also
Also can you suggest some other way to do the same functioning as cluster.externalaccess.enabled parameter is performing.
means without load balancer
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.