sanderploegsma / redis-cluster

Redis Cluster setup running on Kubernetes
https://sanderp.nl/running-redis-cluster-on-kubernetes-e451bda76cad
MIT License
244 stars 132 forks source link

if you use Flannel network in k8s,you can't success #14

Closed zgjbatyz closed 5 years ago

zgjbatyz commented 5 years ago
        Performing hash slots allocation on 6 nodes...
        Master[0] -> Slots 0 - 5460
        Master[1] -> Slots 5461 - 10922
        Master[2] -> Slots 10923 - 16383
        Adding replica 172.30.6.8:6379 to 172.30.6.7:6379
        Adding replica 172.30.8.8:6379 to 172.30.8.10:6379
        Adding replica 172.30.5.13:6379 to 172.30.5.14:6379
        M: bbbb13673757cca93b8887a4a6372a96c1155345 172.30.6.7:6379
        slots:[0-5460] (5461 slots) master
        M: 4de050ea712c7664def4f8c3f5d5ed1fc9a57278 172.30.8.10:6379
        slots:[5461-10922] (5462 slots) master
        M: c5386ea9cf29b3786b98c2b90d3cceae3873efee 172.30.5.14:6379
        slots:[10923-16383] (5461 slots) master
        S: 6dac6a67c3d39a9d62038d9c2b83f925b9de9a76 172.30.6.8:6379
        replicates bbbb13673757cca93b8887a4a6372a96c1155345
        S: 649e718cdb5344b956e7a10f0809acfc65634dd8 172.30.8.8:6379
        replicates 4de050ea712c7664def4f8c3f5d5ed1fc9a57278
        S: 3acc404a36b7f5dcb7184da9144f42a895351845 172.30.5.13:6379
        replicates c5386ea9cf29b3786b98c2b90d3cceae3873efee
        Can I set the above configuration? (type 'yes' to accept): yes
        Nodes configuration updated
        Assign a different config epoch to each node
        Sending CLUSTER MEET messages to join the cluster
        Waiting for the cluster to join
        .....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

can't join cluster tks please don't delete my issues.if you use Flannel network in k8s,you can't success!!!!!!!!

sanderploegsma commented 5 years ago

This setup works in Minikube, GKE, EKS and AKS so as far as I'm concerned (and as I already said in #13), this sound like an issue with Flannel. I'm afraid I can't help you with that. If you figure out what the problem is open up a PR if you like, explaining the issue in the README.

I noticed you opened a bunch of issues in different repositories with just the log output. I advice you to provide more information in the future, such as stuff you already tried to fix it yourself. Without any extra information it's impossible to help you out.