---
title: "Discussion on \"Highly Available Keycloak on Kubernetes\" | Hashnode"
description: "Discussion on \"Highly Available Keycloak on Kubernetes\". Maintaining state while adding replicas"
url: "https://hashnode.com/posts/highly-available-keycloak-on-kubernetes/63d93efa5c7145c2144fcd9f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Highly Available Keycloak on Kubernetes](https://jimops.io/highly-available-keycloak-on-kubernetes?utm_source=hashnode&utm_medium=feed)

Maintaining state while adding replicas

Jan 31, 2023 · 5 min read · jimops.io  
Read the article

-   [#kubernetes](https://hashnode.com/tag/kubernetes)
-   [#keycloak](https://hashnode.com/tag/keycloak)
-   [#sso](https://hashnode.com/tag/sso)
-   [#iam](https://hashnode.com/tag/iam)

## Written by

[Jimmy Ungerman](https://hashnode.com/@jimmyungerman)

@jimmyungerman

  
[View profile](https://hashnode.com/@jimmyungerman)

DevOps Engineer learning day by day

DevOps Solution Architect focusing in AWS and all things Automation. GitOps and ArgoCD fanboy, lover of all things Kubernetes

## Responses 5

Markdown supported · ⌘↵ to post

[Alexandre Barros Cabral](https://hashnode.com/@ab84cabral)

[Jun 3, 2024](https://hashnode.com/posts/highly-available-keycloak-on-kubernetes/63d93efa5c7145c2144fcd9f/comment/665ddc3f17e58298ef0dc653)

Hello, I added the keycloak-headless service and change the configmap but dont work

[Robbert](https://hashnode.com/@hobbyrobby)

[Sep 29, 2023](https://hashnode.com/posts/highly-available-keycloak-on-kubernetes/63d93efa5c7145c2144fcd9f/comment/65168435fc6c496f09f0757b)

This is just what I was looking for, facing the problem of deploying a HA Keycloak with replicaset on K8s. Haven't implemented it yet but it sure looks promising.

[Gherasim Mircea](https://hashnode.com/@mirceaghm)

[Jul 21, 2023](https://hashnode.com/posts/highly-available-keycloak-on-kubernetes/63d93efa5c7145c2144fcd9f/comment/64ba29119574a8e2c70c6ef4)

hello [Jimmy Ungerman](https://hashnode.com/@jimmyungerman) how can I add an nginx ingress in front of this headless service?

[Gherasim Mircea](https://hashnode.com/@mirceaghm)

[Jul 21, 2023](https://hashnode.com/posts/highly-available-keycloak-on-kubernetes/63d93efa5c7145c2144fcd9f/comment/64ba29119574a8e2c70c6ef4#reply-64ba41422e3477ebf6133d67)

Never mind I succeeded. But now I have another problem: every pod give me this message: "no members discovered after 2002 ms: creating cluster as coordinator"

[Lucas Pick](https://hashnode.com/@lucaspick)

[Jan 31, 2023](https://hashnode.com/posts/highly-available-keycloak-on-kubernetes/63d93efa5c7145c2144fcd9f/comment/63d95afeaa8c8258b060887e)

repo1.dso.mil/big-bang/product/packages/keycloak

HA built-in chart :)

[Daniel blankson](https://hashnode.com/@Multiples)

[Jan 31, 2023](https://hashnode.com/posts/highly-available-keycloak-on-kubernetes/63d93efa5c7145c2144fcd9f/comment/63d94c3bf391025880c7ffe5)

Great article Jimmy! This helps me a lot as I use keycloak everyday. Thank you so much!
