Configuring Infinispan instance

Hi!

I have several days trying to configure Keycloak 12.0.4 to work with a separated cache instance of Infinispan 11.0.4, i barely found a few tutorials but always for different versions of KC an ISPN. I have already configured both pods, the infinispan instance runs without any problem but when i try to run the Keycloak server im always getting this message:

10:22:15,537 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) WFLYCLINF0002: Started authenticationSessions cache from keycloak container
10:22:15,565 INFO  [org.infinispan.HOTROD] (blocking-thread--p9-t1) ISPN004021: Infinispan version: Infinispan 'Corona Extra' 11.0.4.Final
10:22:15,584 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004006: Server sent new topology view (id=1, age=0) containing 1 addresses: [x.x.x.x:11222]
10:22:15,585 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004014: New server added(x.x.x.x:11222), adding to the pool.
10:22:15,587 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004016: Server not in cluster anymore(infinispan-server:11222), removing from the pool.
10:22:15,600 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 58) WFLYCLINF0002: Started sessions cache from keycloak container
10:22:15,624 INFO  [org.infinispan.HOTROD] (blocking-thread--p9-t1) ISPN004021: Infinispan version: Infinispan 'Corona Extra' 11.0.4.Final
10:22:15,642 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004006: Server sent new topology view (id=1, age=0) containing 1 addresses: [x.x.x.x:11222]
10:22:15,643 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004014: New server added(x.x.x.x:11222), adding to the pool.
10:22:15,649 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004016: Server not in cluster anymore(infinispan-server:11222), removing from the pool.
10:22:15,702 INFO  [org.infinispan.HOTROD] (blocking-thread--p9-t1) ISPN004021: Infinispan version: Infinispan 'Corona Extra' 11.0.4.Final
10:22:15,720 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004006: Server sent new topology view (id=1, age=0) containing 1 addresses: [x.x.x.x:11222]
10:22:15,727 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004014: New server added(x.x.x.x:11222), adding to the pool.
10:22:15,729 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004016: Server not in cluster anymore(infinispan-server:11222), removing from the pool.
10:22:15,744 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 61) WFLYCLINF0002: Started loginFailures cache from keycloak container
10:22:15,806 INFO  [org.infinispan.HOTROD] (blocking-thread--p9-t1) ISPN004021: Infinispan version: Infinispan 'Corona Extra' 11.0.4.Final
10:22:15,905 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004006: Server sent new topology view (id=1, age=0) containing 1 addresses: [x.x.x.x:11222]
10:22:15,905 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004014: New server added(x.x.x.x:11222), adding to the pool.
10:22:15,920 INFO  [org.infinispan.HOTROD] (Thread-0) ISPN004016: Server not in cluster anymore(infinispan-server:11222), removing from the pool.
10:22:15,949 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 60) WFLYCLINF0002: Started clientSessions cache from keycloak container
10:22:15,958 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 66) WFLYCLINF0002: Started actionTokens cache from keycloak container

This message repeats for each cache ()

Ive already checked and the IP address is OK (replaced with x.x.x.x) and i can telnet from other pods to infinispan, i dont know if im missing some configuration steps.

If any of you can help me with examples, documentation, or direct help i will really appreciate that!

EDIT:

Services:

apiVersion: v1
kind: Service
metadata:
  name: infinispan-server
  namespace: dnoticias
  annotations:
    prometheus.deckhouse.io/port: "11222"
    prometheus.deckhouse.io/sample-limit: "5000"
  labels:
    prometheus.deckhouse.io/custom-target: infinispan
    app: infinispan-server
spec:
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  - name: rest
    port: 8080
    protocol: TCP
    targetPort: 8080
  - name: console
    port: 11222
    protocol: TCP
    targetPort: 11222
  selector:
    app: infinispan-server
  sessionAffinity: None
  type: ClusterIP
---
# Headless configuration used in keycloak instances to discover each other via DNS port 7600
apiVersion: v1
kind: Service
metadata:
  name: infinispan-server-headless
  namespace: dnoticias
  labels:
    app.kubernetes.io/component: headless
spec:
  clusterIP: None
  ports:
    - name: jgroups
      port: 7600
      protocol: TCP
      targetPort: 7600
    - name: jgroups1
      port: 7800
      protocol: TCP
      targetPort: 7800
    - name: jgroups2
      port: 7900
      protocol: TCP
      targetPort: 7900
  selector:
    app: infinispan-server
  sessionAffinity: None
  type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
  name: infinispan-server-service
  namespace: dnoticias
spec:
  ports:
    - nodePort: 32705
      port: 11222
      targetPort: 11222
      protocol: TCP
  type: NodePort
  selector:
    app: infinispan-server
---
apiVersion: v1
kind: Service
metadata:
  name: infinispan-server-http
  namespace: dnoticias
spec:
  ports:
    - nodePort: 32710
      port: 11222
      targetPort: 11222
      protocol: TCP
  type: NodePort
  selector:
    app: infinispan-server

Well, i just noticed that i can ignore the “Server not in cluster anymore” message, because the KC instance communicate successfully with the ISPN pod.