Cannot connect to memorystore from GKE

943 views
Skip to first unread message

rajuda...@gmail.com

unread,
May 10, 2018, 4:12:56 AM5/10/18
to Google Cloud Memorystore Discuss
I created a cluster with ip alias:

`gcloud  container clusters create testcluster --enable-ip-alias --create-subnetwork name=test-cluster-subnet --cluster-version 1.10.2-gke.0 --preemptible --zone us-central1-b`

Memorystore is running with ip 10.0.0.3 on us-central1-b

But I cannot connect to the ip through pods:

`kubectl run -i --tty busybox --image=busybox -- sh`
 `telnet 10.0.0.3 6379`

But I can telnet through instance in the same region.


Any idea? Thanks.

Gopal Ashok

unread,
May 10, 2018, 1:52:40 PM5/10/18
to rajuda...@gmail.com, Google Cloud Memorystore Discuss
Hi,
For clusters 1.8+ you need to enable IP alias.

Thanks
Gopal

--
You received this message because you are subscribed to the Google Groups "Google Cloud Memorystore Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-memorysto...@googlegroups.com.
To post to this group, send email to google-cloud-mem...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-memorystore-discuss/abac29c4-ff4f-4e98-9e1e-205036f40996%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Weiping Zhang

unread,
May 10, 2018, 4:04:19 PM5/10/18
to Gopal Ashok, rajuda...@gmail.com, google-cloud-mem...@googlegroups.com
Hi,

After the telnet command do you simply observe a blank screen? Or does it actively disconnect? If the former, try typing 'PING' and hitting enter and seeing if you receive a '+PONG' response. Telnet behaves a little weird in that it doesn't give you a command prompt or any feedback after it connects so it appears as if nothing is happening. Alternatively, instead of telnet, could you try 'echo ping | netcat 10.0.0.3 6379' and see whether that returns '+PONG'?

Thanks,
Weiping


For more options, visit https://groups.google.com/d/optout.


--
Thanks,
Weiping
Reply all
Reply to author
Forward
0 new messages