kind: ConfigMap
apiVersion: v1
metadata:
  name: application-properties
data:
  application.properties: |
    infinispan.remote.server-list=datagrid:11222
    infinispan.remote.client-intelligence=BASIC

    # near caching
    infinispan.remote.near-cache-mode=INVALIDATED
    infinispan.remote.near-cache-max-entries=100

    # activates statistics for actuator
    infinispan.remote.statistics=true
    infinispan.remote.jmx=true

    management.endpoints.web.exposure.include=*

    # Security settings. Comment these properties if you are using a non secured server
    infinispan.remote.use-auth=true
    infinispan.remote.sasl-mechanism=DIGEST-MD5
    infinispan.remote.auth-realm=default
    infinispan.remote.auth-server-name=infinispan
    infinispan.remote.auth-username=developer
    infinispan.remote.auth-password=${developer_password}

    # Important to add the java marshaller if you need SpringSession or avoid Protostream
    infinispan.remote.java-serial-whitelist=org.infinispan.tutorial.simple.spring.remote.*

    #SSL
    infinispan.remote.use_ssl=true
    infinispan.remote.trust_store_path=/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt