Running Keycloak on Kubernetes with the Keycloak Operator: what the work involves
The Keycloak Operator manages the Keycloak server deployment and, through custom resources, the realms and clients that run on it. It does not decide your architecture, your database, your hostnames or your upgrade policy for you, and it does not replace the identity design work that comes before deployment. A platform or identity team running Keycloak inside its own cluster should treat the operator as a reconciliation engine: you declare the desired state in Kubernetes, and the operator works to make the running system match it.
That reconciliation model is what makes this harder than a container install. Realm and client configuration can live in cluster objects, so the cluster becomes a place where identity configuration is stored, reviewed and changed. Someone must decide who may apply changes to KeycloakRealmImport and client resources, how those manifests are reviewed, and how they relate to any changes made in the admin console. Database credentials, TLS certificates and the public hostname also need deliberate choices, since they are referenced by the Keycloak resource and affect every sign-in. Upgrade behavior needs the same care: the operator documentation strongly recommends manual approval mode for operator updates so that upgrades do not happen unintentionally.
The operator can be installed through Operator Lifecycle Manager, which is the recommended route, directly with kubectl, or through an experimental Helm chart. It manages four custom resources: Keycloak, KeycloakRealmImport, KeycloakOIDCClient and KeycloakSAMLClient. Confirm which install method your platform team has approved and which operator version your cluster supports before you write any manifests. The Keycloak Operator installation guide is the starting point for that check, and your team should record the choice in its deployment design.
Which operator resources control the deployment
Keycloak on Kubernetes is driven by a small set of custom resources that the operator reconciles into running pods. Each resource owns a different slice of the deployment, and the boundaries between them decide where changes belong and where drift can creep in.
The Keycloak Operator
The operator is the controller that watches Keycloak custom resources and reconciles them into running server instances. It is installed through Operator Lifecycle Manager, which is the recommended method, or with kubectl or an experimental Helm chart. It does not own realm data, client settings or database contents. Confirm which install method your platform team has standardized on, and set its update approval to manual so that a new operator version never changes your running Keycloak without a review.
Operator installationThe Keycloak custom resource
The Keycloak resource defines server instances, the hostname and TLS settings, and the reference to the database. It owns the runtime shape of the deployment, including replica count and how the server is exposed. It does not own realm contents, so users, roles and clients created in the admin console live in the database and are not reflected back into this file. Start your review with the hostname and TLS block, since public frontend URLs and admin access depend on it.
The KeycloakRealmImport resource
KeycloakRealmImport loads a realm definition when the deployment starts, which is useful for seeding a new environment with a known set of realms, clients and roles. It does not keep the realm in sync afterward, so later changes made in the admin console or by users will not be overwritten by a re-apply of the same import. Treat it as a one-time bootstrap input and export the realm from a reference environment before you build the file. Confirm whether your realm changes will flow through this resource or through a separate configuration pipeline.
The KeycloakOIDCClient resource
KeycloakOIDCClient manages an OpenID Connect client as a Kubernetes object, so redirect URIs, client settings and secrets can be reviewed in the same pull request as application changes. It does not own the users who sign in or the roles mapped into tokens, and an administrator who edits the same client in the console creates drift that the resource will not explain. Decide early which team owns client definitions and enforce that edits go through the repository. Check how the operator reports reconciliation status before you rely on it in a release pipeline.
The KeycloakSAMLClient resource
KeycloakSAMLClient manages SAML 2.0 service provider registrations as Kubernetes objects, so assertion consumer URLs, signing settings and attribute mappings can be versioned with the application. It does not hold the signing keys or certificates your service provider trusts, and it does not manage the identity provider settings on the other side of the trust relationship. Confirm with each application owner which certificate rotation process applies and where the resulting values will be stored before you migrate a SAML integration into this model.
The external database and its Secret
Keycloak reads its database connection and credentials from an external database that the Keycloak resource references, typically through a Kubernetes Secret. The database owns all realm state, sessions and events, so it is the component with the highest recovery stakes. The Secret owns the credentials and is the first thing to check when a pod fails to start after a password rotation. Keycloak supports several production databases, so confirm your engine and version against the database guide before provisioning, and align backup and restore ownership with your database team.
Database guideHow the operator, custom resources and database fit together
The diagram starts with an engineer or GitOps pipeline applying custom resources to the cluster. The Keycloak Operator reconciles those resources into Keycloak pods, and the pods connect to an external production database on a separate network. Public traffic reaches the frontend through cluster ingress, while the admin console and management interface sit behind a separate admin hostname. Check that the operator upgrade waits for manual approval, and that each trust boundary has its own access rules.
Resources flow through the operator into Keycloak pods, which reach the database across a separate boundary.
Which install and configuration choices to settle before the first deployment
This table compares the main install and configuration options for the Keycloak Operator and the operational cost each one carries. Read each row for ownership, drift, upgrade effort and support posture, then settle the choices your platform team can sustain before the first deployment.
| Decision | When it fits | Operational trade-off |
|---|---|---|
| Install through Operator Lifecycle Manager | Clusters that already run OLM and want the operator's subscription, channel and update settings managed in one place | OLM handles operator upgrades and approval mode, so the team must understand its install plan behavior. Confirm the catalog and channel your cluster uses before rollout. |
| Install with kubectl | Teams that want explicit control over operator manifests and version pinning without an OLM dependency | The team applies and upgrades operator manifests itself, so upgrade effort and drift between clusters fall to the platform team. Expect more manual steps at each release. |
| Install with the experimental Helm chart | Teams already standardized on Helm for cluster tooling who accept an experimental install path | The chart is marked experimental in the operator documentation, so confirm its support posture and version compatibility with your internal change process before using it for production. |
| Realms and clients as custom resources | Teams that want realm and client settings reviewed in Git and applied through the same pipeline as other cluster resources | Git becomes the source of truth, which reduces drift. Changes made in the admin console can be overwritten on the next reconcile, so agree on one editing path with the identity team. |
| Realms and clients configured in the admin console | Small estates, early prototyping or teams without a GitOps pipeline for identity configuration | Low setup effort, but configuration drifts between environments and is hard to audit. Every change needs a manual record for compliance reviews. |
| Import realms at deployment | New environments that need a known starting realm, such as a test or staging copy seeded from a reviewed export | Imports give repeatable starting points, but they only run at import time. Later changes still need a process, and imported secrets must be handled outside the realm file. |
| Manual realm setup after deployment | Environments where realm design is still changing and the team is not ready to freeze configuration | No import artifacts to maintain, but each environment is built by hand. Rebuilding after a failure takes longer and depends on the people who did the setup. |
| Database inside the cluster | Non-production environments or teams that accept running and backing up a stateful database on Kubernetes | The team owns backups, restores, storage classes, failover and database patching. Confirm the database meets the synchronous replication requirement for your HA design. |
| External supported database | Production deployments that need the database team's backup, patching and failover standards | Requires network and credential wiring, and a separate owner for database upgrades. Confirm the database version is on Keycloak's supported list before you choose it. |
| Automatic operator updates | Teams with frequent, low-risk change windows and a tested non-production path that catches upgrades quickly | Upgrades arrive without a review step, which can cause unintended changes to running Keycloak instances. The operator documentation discourages this for production. |
| Manual approval of operator updates | Production environments where each upgrade needs a change record, a realm test pass and a scheduled window | Adds a recurring review step and can leave clusters behind on security fixes. Plan a standing owner and a release-tracking routine to keep the gap small. |
How to build a Keycloak operator deployment step by step
This sequence takes a platform team from an empty Kubernetes namespace to a Keycloak instance that is reachable over TLS, backed by a supported production database, and running a tested client sign-in. Each step ends with a check you can record before moving on.
Prepare the namespace, secrets and TLS certificates
Create a dedicated namespace for the operator and the Keycloak instance, then store the database credentials, the admin bootstrap credentials and the TLS certificate and key as Kubernetes secrets. Your platform team or certificate authority owns the certificate, and it must cover the public hostname users will reach. Done means the secrets exist in the target namespace, access to them is limited by role-based access control, and the certificate chain validates against the hostname you plan to publish.
Install the operator and confirm it runs
Install the Keycloak Operator through the method your organization has chosen: Operator Lifecycle Manager is the recommended route, with kubectl and an experimental Helm chart as alternatives. Set the operator update approval to manual during installation so that new operator versions do not upgrade Keycloak without a review. Done means the operator pod is running, its custom resource definitions for Keycloak, KeycloakRealmImport, KeycloakOIDCClient and KeycloakSAMLClient are registered, and the operator logs show no errors at startup.
Choose and connect a supported production database
Select a production database from the supported list, such as PostgreSQL, and provision it with synchronous replication if you plan a high availability design later. This step carries a decision: Keycloak can migrate its schema automatically at startup, which is the default, or you can apply the SQL manually, which the upgrade guide suggests for large deployments. Choose manual migration if your change process requires database scripts to be reviewed separately. Done means a test pod in the namespace can open a connection to the database, and the Keycloak server logs show the schema migration completing without errors.
Define the Keycloak resource and confirm readiness
Write the Keycloak custom resource with the public hostname, the TLS secret reference, the database connection settings and the reverse proxy configuration your ingress or load balancer uses. Apply it and wait for the status to report the instance as ready. Done means the Keycloak custom resource shows a ready condition, the pods pass their health checks, and the public hostname returns the Keycloak sign-in page over HTTPS with a certificate that matches your chain.
Separate the admin hostname or path from the public frontend
Configure a separate hostname or context path for the admin console and the Administration REST API, and restrict which routes your reverse proxy exposes publicly. The production guide calls for this split so that administrative endpoints are not reachable through the same paths users use for sign-in. Your network or security team should confirm which networks may reach the admin address. Done means the admin console loads only from the admin hostname, requests to admin paths on the public hostname are blocked at the proxy, and the sign-in flow still works on the public hostname.
Import a non-production realm with KeycloakRealmImport
Create a KeycloakRealmImport resource that describes a test realm with sample users, roles and groups, and apply it to a non-production environment first. Check that the import finished without errors and then inspect the realm in the admin console to confirm that users, roles, password policies and authentication flows match your definition. Done means the realm exists with the expected contents and the import resource reports completion, and you have recorded any differences to correct in the source definition.
Define clients as resources, test sign-in and promote
Declare each application as a KeycloakOIDCClient or KeycloakSAMLClient resource, with redirect URIs, client secrets referenced from Kubernetes secrets and the scopes it needs. Test a full sign-in and token exchange against the test realm, then keep the same resource definitions in version control and apply them to each later environment, changing only hostnames and secret references. Done means a test user can sign in to the application, the token contains the expected claims, and the same definitions produce matching clients in the next environment.
What drives the effort of an operator-based rollout
This table lists the factors that change how much work an operator-based Keycloak rollout takes, whether each factor is mostly one-time or recurring, and how to keep it manageable. Read it before estimating internal time or requesting a quote, since the largest drivers are usually the number of realms and clients and how many clusters must share one definition set.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Number of realms and clients | Each realm and client modeled as a KeycloakRealmImport or KeycloakOIDCClient or KeycloakSAMLClient resource needs authoring, review and testing. Effort grows with the count and with how many settings differ between them. | Use shared templates or Kustomize overlays for common client settings, and limit realms to real trust boundaries. Model the first few realms completely before copying the pattern. |
| Clusters and environments sharing one definition set | Development, test and production each need the same resources with different hostnames, secrets and database settings. Drift between environments creates rework during every promotion. | Keep one versioned source of resources and parameterize only environment-specific values. Confirm early how your team will promote changes between environments. |
| Database platform and connectivity from the cluster | Keycloak supports several production databases, and the cluster must reach the database over the network with credentials and TLS. Firewall rules, private endpoints and certificate trust often take longer than the Keycloak resources themselves. | Choose a database your organization already operates and supports. Confirm network paths, credential rotation and TLS trust with the database team before writing the Keycloak custom resource. |
| Network and certificate work for hostnames | Public frontend hostnames, a separate admin hostname or context path, ingress rules and certificates all need approval and renewal. Certificate lifecycle work recurs for as long as the service runs. | Agree the hostname scheme and certificate issuer before the first deployment. Automate certificate renewal through your existing ingress or certificate tooling. |
| Integration with GitOps and secrets processes | If your organization already uses a GitOps controller and a secrets manager, the operator resources must fit those tools. Secrets referenced by the operator must be created and rotated outside the Keycloak resources. | Reuse your existing GitOps repository layout and secrets integration. Keep credentials out of realm exports and manifests stored in version control. |
| Team familiarity with Kubernetes and Keycloak | Operator reconciliation, custom resource status and Keycloak realm concepts are unfamiliar to many teams. Learning time is one-time, but troubleshooting without experience recurs during incidents. | Train at least two engineers on both the operator and Keycloak administration before go-live. Document how to read resource status and operator logs. |
| Existing configuration to export and rewrite | Existing realms, clients, identity providers and flows must be exported and converted into custom resources, then checked for settings the operator does not manage. This is usually a one-time task per source system, but it can be large. | Inventory existing configuration before design starts. Confirm with the operator documentation which settings are covered by custom resources and which need another method. |
| Operator update approvals | The operator documentation strongly recommends manual approval mode for operator updates to avoid unintended automatic upgrades. Each approval needs testing against non-production realms and a named owner. | Set a regular review window for operator and Keycloak releases. Keep a test environment that mirrors production realms so each approval is a short, repeatable check. |
| Client changes after go-live | New applications, redirect URI changes and secret rotation are made through client resources and go through the same review path as the first build. This work recurs with every application change. | Require a standard request template for client changes and review them through your normal change process. Keep client definitions in version control so each change is traceable. |
How the deployment changes by environment and availability design
A pilot in one cluster and one availability zone is the simplest shape. The team installs the operator, creates a Keycloak custom resource with a small instance count, and points it at a test database. The goal is to prove sign-in flows, realm import and client registration, not to prove failover. The default development file database is for development only, so the pilot should still use a supported production database engine (for example PostgreSQL within the supported range) so that schema and driver behavior match what production will run.
- Instance count: Start with one replica and treat any scaling test as separate work.
- Database: Use a supported engine and version, so schema migration is exercised early.
- Hostnames: Give the admin console and Administration REST API their own hostname or context path, even in a pilot, so the production layout is tested.
- Realm import: Test
KeycloakRealmImporton a copy of the realm you expect to keep. - Operator update mode: Set manual approval now so the pilot behaves like production.
Before leaving the pilot, confirm the exact resource fields, supported database versions and hostname settings for your release in the Keycloak operator and production documentation.
A production deployment in one cluster spread across availability zones uses one Keycloak deployment with pods scheduled across zones. This is the single cluster design the high availability overview describes, and it depends on a synchronously replicated database. If the database is not synchronously replicated across zones, the design is not one the documentation supports, regardless of how many Keycloak pods run. The resource changes mainly in replica count, pod topology spread settings, the database connection and the TLS and proxy settings in front of the service.
- Replica spread: Configure scheduling so replicas land in different zones and a single zone loss leaves enough pods running.
- Database replication: Confirm the database product and replication mode meet the synchronous requirement in the high availability guide.
- Load balancer and sessions: Verify how the ingress handles session affinity and failover.
- Failover test: Remove a zone or pod in a staging copy and measure sign-in impact against your availability target.
- Health and metrics: Confirm probes and metrics scraping work on the management interface.
Check the high availability and database pages for your exact release, because supported topologies and replication requirements are version-specific.
A multi-cluster design runs Keycloak across more than one cluster, usually to survive loss of a whole site or region. Keycloak documents three patterns: a single cluster, multi-cluster v2 without an external Infinispan cluster, and multi-cluster v1, which used a separate Infinispan cluster per site. The v1 pattern is deprecated, so new designs should not start from it. The operator resources differ per cluster, and the team must decide how each site's database and cache layer coordinate before writing any manifest.
- Pattern choice: Choose multi-cluster v2 for new work, and confirm it is the current supported pattern for your version.
- Avoid v1: If an existing estate uses v1, plan the move to the supported pattern rather than extending it.
- Database: Both supported designs need a synchronously replicated database, so confirm how it spans sites.
- Per-cluster manifests: Keep operator resources consistent across clusters, and control which cluster is the source of realm changes.
- Failover behavior: Test site loss and recovery, including session and token behavior.
Read the multi-cluster and upgrade notes for your exact release, since the guidance on deprecated features changes between versions.
An air-gapped or restricted cluster cannot pull images or reach external databases freely, so the deployment depends on what the team can bring in. The operator and Keycloak images must be mirrored into an internal registry, and the operator install method (Operator Lifecycle Manager, kubectl or the experimental Helm chart) must work without internet access. The database must be reachable from the cluster network, and its driver and certificate settings must be planned before installation. Because Keycloak migrates the database schema at startup by default, the team should also decide whether migration runs automatically or as reviewed SQL applied by administrators.
- Image mirroring: Mirror the operator, Keycloak and any sidecar images, and pin tags to the versions you tested.
- Install path: Confirm which install method works offline and who approves each image update.
- Database reachability: Verify network policies, DNS and TLS from the Keycloak pods to the database.
- Schema migration: Choose automatic or manual migration, and document the decision for upgrades.
- Metrics and logs: Confirm the monitoring stack can scrape the management interface without external egress.
Confirm the image, install and database requirements for your release and your environment with the operator documentation before the change window.
Securing the operator deployment and its secrets
The operator makes Keycloak easy to declare, but every Keycloak and client resource is a security-sensitive object: it sets hostnames, redirect URIs, credentials and update behavior. The cards below cover the controls the cluster and operator can enforce, and the policy decisions your team still has to make and document.
TLS on every connection
Keycloak's production guide calls for TLS on all communication, so plan certificates for the public hostname, the admin hostname and the link to the database. Check that the database connection itself is encrypted, not only ingress traffic. Certificate issuance and rotation are handled by your cluster tooling and your policy, so confirm who owns renewal before go-live.
Production guideSeparate admin and public hostnames
Expose the admin console and Administration REST API on a different hostname or context path from public frontend URLs. Configure the Keycloak resource so that only the public hostname is reachable from the internet, and restrict the admin hostname to internal networks or VPN ranges. Confirm the ingress rules in your cluster match this split, since the operator does not decide network reachability on its own.
Secrets outside manifests
Keep database credentials, the initial admin credentials and any client secrets in Kubernetes Secrets or an external secrets manager, and reference them from the custom resources. Resource manifests stored in Git should contain no passwords. Whether you use sealed secrets, an external store or a cloud key service is a policy choice for your team, so record it and confirm that rotation has an owner.
RBAC on Keycloak and client resources
Restrict who can create, edit or delete Keycloak, KeycloakRealmImport, KeycloakOIDCClient and KeycloakSAMLClient objects. Client resources carry redirect URIs and secrets, so a user who can edit them can change where tokens are sent. Scope roles by namespace, audit changes through Kubernetes audit logs, and require review for client changes. Who approves a role binding is a team policy decision.
Operator images and update approval
The operator documentation strongly recommends manual approval mode for operator updates to avoid unintended automatic upgrades. Pin the operator and Keycloak image versions, pull them from a registry you control, and verify image provenance with the tooling your organization uses for signing. Confirm that each upgrade is tested against a non-production realm first, because Keycloak minor releases can carry behavior changes.
Operator installationReverse proxy path restrictions
Keycloak's guidance on running behind a reverse proxy includes path restrictions, so only the paths needed for sign-in, token endpoints and resources are forwarded publicly. Block administrative paths and the metrics endpoint at the proxy, and confirm that the management interface is not reachable from outside the cluster. Verify the rules with an external test after each change, since the proxy and the operator configuration must agree.
Production guideHow to confirm the deployment works and fails safely
Start by proving the operator itself is healthy before trusting it with production identity. Check that the operator pod is running and not restarting, then apply a throwaway Keycloak resource in a test namespace and confirm the operator reconciles it into a StatefulSet and a Service. Next, confirm the Keycloak instance reports ready and that the public hostname and the admin hostname resolve and respond separately, since the production guide expects the admin console and Administration REST API to sit on a different hostname or context path from public frontend URLs. A request to the public host for the admin console should fail. Health and metrics endpoints can be checked on the management interface described in the Keycloak observability guide, which is where your orchestration probes and Prometheus scrapes should point.
Next, prove the server is wired to the production database and not a development file store. Read the startup logs for the configured database vendor and confirm schema migration completed, either automatically at startup or through the SQL you applied yourself if you chose manual migration. Then apply a KeycloakRealmImport resource to a test realm, verify the expected clients, roles and users exist, and apply the same manifest a second time. The second apply should change nothing; if the realm drifts, your import is not idempotent and should not be used for live realms. Repeat the test with a managed KeycloakOIDCClient to confirm a browser sign-in and a token exchange complete, and with a KeycloakSAMLClient if SAML is in scope. Finally, delete a test client and confirm it is restored by reapplying the manifest from version control, which is the recovery path you will rely on during an incident.
Then test the failures on purpose, in a non-production environment. Stop the database or block its port and confirm the Keycloak pods fail readiness rather than serving stale or broken sign-ins, and that the operator reports the condition without crash-looping. Register a client with a redirect URI that does not match the test application and confirm the sign-in is rejected at the authorization step. Hold the operator in manual approval mode, which the operator documentation strongly recommends, and confirm a newer operator version is offered but not applied. Finally, replace the TLS certificate with an expired one in a staging ingress and confirm the failure is visible in your monitoring before users report it. Record the results, the expected behavior and the owner of each alert, and confirm with your platform team how certificate renewal is handled in your own cluster.
What to monitor, back up, upgrade and document after go-live
Go-live is where Keycloak on Kubernetes becomes an operational service. The four areas below connect: the metrics and health signals show when something is wrong, backups and version-controlled resources let you rebuild, upgrade discipline controls when change arrives, and the runbook records who decides and who acts.
Monitoring and health signals
Enable metrics with --metrics-enabled=true so Keycloak exposes Prometheus-format data at /metrics on its management interface, then scrape it from your Prometheus setup. Alert on the health endpoints your orchestrator uses for probes, since a failing probe is often the first sign of a stuck pod. Decide which signals page someone at night, such as login failures, latency and cache health, and which only feed a dashboard. Confirm that the management interface is not reachable from public routes.
Backups and recovery sources
The database holds users, sessions and configuration, so it needs its own backup schedule and restore procedure from your database platform. Treat the version-controlled Keycloak, KeycloakRealmImport and client resource definitions as the second recovery source, because they let you rebuild the realm configuration in a new namespace. Test a full restore into a separate environment, including the secrets the resources reference, and record how long it took. Confirm which secrets are excluded from Git and where they are backed up.
Upgrades under manual approval
Keep operator updates on manual approval so a new operator version never changes your cluster without a named person deciding. Before each Keycloak image change, read the upgrade notes for behavior changes, since minor releases can carry opt-in changes. Choose between automatic and manual schema migration based on deployment size, and rehearse the chosen path. Test realms, clients and sign-in flows in a non-production namespace first, using a copy of production data where your policy allows it.
Upgrading guideOperational runbook and ownership
Write a short runbook that lives next to the resource definitions and is reviewed at each upgrade. It should name the owner of each Keycloak resource, list every managed realm and client, and state who rotates TLS certificates, database credentials and client secrets, and how often. Record who approves operator updates and who can open an emergency change. Without these names, a rotation or an incident waits for someone to be found, so review the runbook after every change of team membership.
Admin guideQuestions teams ask before running Keycloak with the operator
Can our team run the Keycloak Operator without outside help?
Yes, a team with Kubernetes operations experience can run the operator in-house, but it needs people who are comfortable with custom resources, certificates, database connectivity and upgrade planning. The operator is installed through Operator Lifecycle Manager, which the Keycloak Operator documentation recommends, or with kubectl. Your team will also need to understand Keycloak itself: realms, clients, authentication flows and how the database schema changes between releases. Most teams split the work: platform engineers own the cluster, the operator and the database connection, while identity engineers own the realm and client definitions. If either group lacks experience, a partner can close that gap, and you should ask the partner to show prior Keycloak operator work in a client environment you can review.
What makes the effort grow as we add realms, clients and environments?
Effort grows with the number of realms and clients because each one is a separate configuration to model, test and keep under version control. Every additional environment, such as development, staging and production, multiplies the work of promoting changes and proving that they behave the same way. Clients that need custom protocol mappers, role models or token settings take longer than standard ones. Directory integration, multiple identity brokers and high availability requirements add more to the design. Ask any partner to break its scope down by realm, client count, environment and integration, so you can see which drivers push the estimate up.
What does the work need from our internal team?
The work depends on several internal owners who make decisions the implementer cannot make for you. Cluster owners grant access to the namespace and approve the operator install. Database owners provision the database that Keycloak connects to and confirm that it supports the synchronous replication your high availability design needs. DNS owners create the public and admin hostnames. Certificate authority owners issue the TLS certificates for every endpoint. Identity owners review the realm models, client definitions and sign-in flows before they reach production. Agree on these owners and their review windows at the start, because waiting for them is one of the most common causes of schedule slippage.
Does the operator replace the Keycloak admin console?
No, the admin console remains available, but changes made there are not automatically written back to the custom resources that the operator manages. If someone edits a client in the console and the same client is defined as a KeycloakOIDCClient resource, the two definitions can drift apart. The practical rule is to choose one source of truth for each object. Many teams manage clients and realm imports as code and restrict console changes to emergency fixes that are then copied back into version control. Write this rule into your operating procedures and confirm with your implementer how they handle drift detection.
Why does the operator documentation recommend manual update approval?
Manual approval stops the operator from upgrading Keycloak without a person reviewing the change first. The Keycloak Operator documentation strongly recommends this mode to avoid unintended automatic upgrades. Keycloak ships four minor releases a year, and the project says breaking changes in a minor release will be opt-in, so an approved upgrade still needs review of the upgrade notes. For example, the Keycloak 26.8 upgrade notes include enforced SMTP StartTLS without plaintext fallback and mandatory signature validation of backchannel logout tokens. Plan a regular upgrade window, test each release against a copy of your realms in a non-production environment, and approve updates only after that test passes.
Do we need a partner for a first production deployment?
A partner is not required, but a first production deployment carries the most unknowns, so many teams benefit from outside review. Ask a partner to show the scope in writing before work starts, including the realms, clients, environments, database, high availability design and handover documents it will deliver. Ask for examples of operator-based deployments they have carried out, with details you can verify, and for the runbook they would hand over. Check how they test realms before production and how they plan the first upgrade. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How does the operator approach relate to database and high availability choices?
The operator deploys Keycloak, but the database and high availability design determine whether the deployment survives failures. Keycloak supports several production databases, including PostgreSQL 14 to 18, and the operator needs a reachable, correctly configured database connection. Keycloak documents three high availability architectures, and both supported designs that span sites require a synchronously replicated database. Decide the database platform and the availability design before you write the custom resources, because they shape how the Keycloak resource is configured. Also decide whether schema migration runs automatically at startup or manually, since that choice affects how upgrades are approved and tested.
How DeployOpen scopes, builds, hands over and supports this work
DeployOpen plans, implements, hardens, documents and supports self-hosted Keycloak inside your own infrastructure, including the Keycloak Operator, Keycloak and realm import resources, and managed clients. Each engagement starts from a written scope so your platform, security and identity teams know what gets built and checked before work begins.
How we scope
- Written scope covers the Kubernetes cluster, namespaces, Operator install method and Keycloak versions in your environment.
- Scope lists the database, HA design, hostnames and reverse proxy layout agreed with your platform team.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- Operator is installed through the recommended method, with updates set to manual approval mode.
- Keycloak and KeycloakRealmImport resources are written as version-controlled manifests for each environment.
- Clients are defined as KeycloakOIDCClient and KeycloakSAMLClient resources and tested against a non-production realm first.
How we hand over
- Handover includes the manifests, runbooks for upgrades and database migration, and documented operator update steps.
- Operator behavior, secrets handling and metrics configuration are documented so your own team can review and run them.
- Your security and compliance reviewers receive the evidence and configuration records they need for their assessments.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
- Support covers reviewing Keycloak release notes and operator updates before they are approved for your clusters.
- Confirm with DeployOpen what response expectations and change windows a retainer includes before signing.

