Accessing ElastiCache from EKS Cluster

Viewed 3002

I have set up an EKS cluster and I am trying to connect application pod to ElastiCache endpoint. I put both in same VPC and configured in/out security groups for them. Unfortunately while trying to telnet from pod to cache endpoint, it says "xxx.yyy.zzz.amazonaws.com: Unknown host". Is it even possible to make such a connection?

2 Answers

Yes, if the security groups allow connectivity then you can connect from EKS pods to Elasticache. However, be aware that the DNS name may not resolve for some time (up to around 15 minutes) after you launch the Elasticache instance/cluster.

I found an answer in the issue from cortexproject(monitoring tool based on Grafana stack).

Solved it using "addresses" instead "host" with the address of my memcached. It worked.

PS: "addresses" option isn't documented in the official documentation.

It has to view like this:

memcached_client:
  addresses: memcached.host
Related