I am not a Java Developer (or english speaker) but I need some clues about this problem.
The problem:
There is a Redis on Kubernetes working as a cache (on redis-master.redis.svc.cluster.local) and my application in other namespace. When it tries to connect to redis, it fails as "org.springframework.data.redis.RedisConnectionFailureException" caused by "redis.clients.jedis.exceptions.JedisConnectionException" caused by "java.net.UnknownHostException".
Any help?
Plataform:
EKS 1.28 Containerd Engine 1.7.2 Amazon Linux 2 Java 21.0.2 Spring Boot 3.2.1 Redis 7.2.1
Its funny, because when i exec a bash inside the container its resolves the name and connect to redis. I run curl, nslookup or redis-cli, and all works! Hostname always resolve. I even try to use the IP address on application but still the same problem.