-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot create service of type LoadBalancer for redis and redis-sentinel components during the initial creation of Cluster #8742
Comments
Hi @tejaboppana Please clarify the version of KubeBlocks first. Seems you are running Redis on KB 0.9.x ? |
Yes I am running Redis on KB 0.9.2 |
Got it. @Y-Rookie PTAL |
@tejaboppana However, if you plan to connect directly to Redis without using a Redis Sentinel client, you have the option to create a LoadBalancer service after cluster creation. This can be done through cluster.Spec.service (distinct from cluster.Spec.componentSpecs[x].services), where you can set the selector to |
And I will further investigate the issue regarding the Redis component not being created according to specifications. |
@Y-Rookie another isssue we should pay attention is: why the redis cmp is not created but cluster is running. I reproduced the case on my test env: |
Describe the bug
I tried creating a redis cluster with replication topology and 2 components - redis and redis-sentinel. I modified the service for both the components using this option to create a service of type LoadBalancer with annotations (AWS NLB in private subnets). The redis-sentinel component is created successfully but the creation of redis components never starts and I do not see any error in Cluster or Component status.
To Reproduce
Steps to reproduce the behavior:
However, if I first create the Cluster without modifying the services
Both the components are created successfully. After this if I first try to update the redis component's service and then update the redis-sentinel component's service loadbalancers are created as expected. If I update both the components at the same time, loadbalancer is created only for the redis-sentinel.
Expected behavior
When I modify the service for both the components to Loadbalancer with annotations, both the components are created successfully.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: