Hello guys - I am trying to build a redis cluster on k8s using 
https://github.com/kelseyhightower/kubernetes-redis-cluster

I see hard-coded clusterIP values e.g. clusterIP: "10.131.242.1"
I tried to assign clusterIP based on the pods ip kubectl get pods -o wide
But service create fails
Error from server: error when creating "services/redis-1.yaml": Service 
"redis-1" is invalid: spec.clusterIP: Invalid value: "10.0.1.4": provided IP is 
not in the valid range...

I also tried to use CLUSTER-IP from kubectl get svc -o wide
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
kubernetes 10.3.240.1 443/TCP 46m 
redis 10.3.246.70 6379/TCP,16379/TCP 43m app=redis

but that also fails as invalid.

What will be a good clusterIP to define in the instance service?

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to