I’m trying to do the same. Here is what I did, but there are issues. Please share if you are able to do this. Thanks!
In Standalone-ha.xml, modified the work, sessions, authentcationsSession, clientSessions, offlineClientSession, loginFailures and actionTokens caches as below (example is for “work” cache):
<replicated-cache name="work">
<remote-store cache="work" remote-servers="remote-cache" passivation="false" fetch-state="false" purge="false" preload="false" shared="true">
<property name="rawValues">true</property>
<property name="marshaller">org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory</property>
<property name="protocolVersion">2.9</property>
</remote-store>
</replicated-cache>
Also, added this to the <socket-binding-group>
<outbound-socket-binding name="remote-cache">
<remote-destination host="35.223.218.139" port="11222"/>
</outbound-socket-binding>
BTW, 35.223.218.139 is the external IP of the Infinispan cluster and the cluster itself is working now (verified by curl post and get).