I'm trying to set up a keycloak cluster in AWS ECS.
I tried JDBC_PING, DNS_PING, ... but I get nothing to work. This was my DNS_PING docker file:
FROM jboss/keycloak:11.0.0
EXPOSE 8080
EXPOSE 7600
EXPOSE 7800
EXPOSE 9000
COPY themes /opt/jboss/keycloak/themes
#Database
ENV DB_VENDOR=mysql
ENV DB_DATABASE=....
ENV DB_ADDR=....
ENV DB_PORT=3306
ENV JDBC_PARAMS='useSSL=false'
ENV PROXY_ADDRESS_FORWARDING=true
ENV JGROUPS_DISCOVERY_PROTOCOL=dns.DNS_PING
ENV JGROUPS_DISCOVERY_PROPERTIES='dns_query=my.services.internal,dns_record_type=A'
ENV JGROUPS_TRANSPORT_STACK=tcp
#Admin user
ENV KEYCLOAK_USER=...
ENV KEYCLOAK_PASSWORD=...
It seems to pick it up, but the two ECS tasks can't communicate with each other: org.jgroups.protocols.pbcast.gms timed out
I have these entries in my security group:

So the tcp/udp ports should not be blocked. (They are even opened up within the task definition).
Any idea on how to get this fixed?