Lab showing keycloak deployed with clustering enabled
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
705 B

http:
routers:
keycloak-http:
rule: "Host(`{{ inventory_hostname }}`)"
entryPoints:
- http
- https
middlewares:
service: "keycloak"
keycloak-https:
rule: "Host(`{{ inventory_hostname }}`)"
entryPoints:
- http
- https
middlewares:
service: "keycloak"
tls: {}
services:
keycloak:
loadBalancer:
healthCheck:
path: /auth/realms/master
interval: "10s"
timeout: "3s"
servers:
{% for host in groups.keycloak %}
- url: "http://{{ host }}:8080"
{% endfor %}
# Sticky session is required for users to login
sticky:
cookie: {}