What is the reason for using Statefulset for Keycloak?
vishrantgupta opened this issue · 1 comments
vishrantgupta commented
This is more of a discussion thread, I don't see discussion is enabled for this repo.
I see Keycloak is deployed with Statefulset https://github.com/codecentric/helm-charts/blob/master/charts/keycloak/templates/statefulset.yaml is there any particular reason why it's a Statefulset? It could be a Deployment?
PSanetra commented
Deployment as StatefulSet is necessary to support the KUBE_PING and DNS_PING JGroup discovery, which is documented here:
It would be possible to switch from StatefulSet to Deployment with a discovery mechanism like JDBC_PING. See http://jgroups.org/manual/#_jdbc_ping