Skip to content

Redis Cluster connection on minikube times out #1691

@gopherine

Description

@gopherine

Expected Behavior

Connect to redis cluster(running on minikube) on local machine

Current Behavior

connection times out when using NewClusterClient
get error https://serverfault.com/questions/812156/redis-cluster-error-moved redis cluster moved when using NewClient

Steps to Reproduce

  • Installed redis cluster using helm charts
  • expose using nodeport ot port forward on minikube
	redisClient := redis.NewClusterClient(&redis.ClusterOptions{
		Addrs:    []string{"127.0.0.1:6379"},
		Password: "M2eVOyDXqd",
	})

	result, err := redisClient.Ping(context.TODO()).Result()
	if err != nil {
		log.Panic(err)
	}
	fmt.Println("connected", result)

the above code times out, I am running this one macos bigsur

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions