But I don’t know how inject the storage explained here:
https://github.com/jgroups-extras/jgroups-azure
Somebody know the correct configuration for this custom cache-ispn.xml for azure?
Somehow I have to be able to indicate that I am using the azure ping, the credentials of the azure resource for its implementation and the machines that I want to form the infinispan cluster…
I’m working with Quarkus distro and the documentation is more structured that wildfly version but very short in principal elements like distributed cache.
Based on what I see in the AZURE_PING.java, I suppose initial_hosts, port_range and max_dynamic_hosts are ignored.
You shouldn’t set cache-stack. This config selects a preconfigured cache coming with keycloak out of the box, not a stack you defined in the cache-config-file.
We seem to be having the same issue with setting up Keycoak v19 with Azure Ping. Did you get this working, and can you share what options you ended up using in your kc build/run commands and what your cache config file entries ended up looking like. Thanks
Hi,
Here is configuration that works for me. We are running Keycloak 24.0.1 (Quarkus Engine) in Azure Container Apps, but the same config should work with Azure VMs as well.
We build a custom docker container to add some parameters and plugins needed.
FROM quay.io/keycloak/keycloak:24.0.1 as builder
# Configure a database vendor
ENV KC_DB=mysql
WORKDIR /opt/keycloak
COPY jar/azure-storage-8.6.6.jar /opt/keycloak/providers/azure-storage-8.6.6.jar
COPY jar/jgroups-azure-2.0.2.Final.jar /opt/keycloak/providers/jgroups-azure-2.0.2.Final.jar
RUN /opt/keycloak/bin/kc.sh build --health-enabled=true --metrics-enabled=true --cache=ispn --cache-stack=azure
FROM quay.io/keycloak/keycloak:24.0.1
COPY --from=builder /opt/keycloak/ /opt/keycloak/
ENV KC_HTTP_RELATIVE_PATH=/auth
ENV KC_HEALTH_ENABLED=true
Hi,
I also would like to run Keycloak in HA with Azure Container Apps. Could you provide additional configuration of the individual containers? Which load balancer are you using?