Create Instance
You can create a Keycloak instance to provide centralized identity and access management for your applications running in the Kubernetes cluster.
Create a Keycloak Instance
Prerequisites
- The Alauda Build of Keycloak Operator is installed in the cluster.
- A PostgreSQL database is accessible from within the cluster.
- A Kubernetes Secret containing the database credentials exists in the target namespace.
Procedure
Create a Keycloak instance via CLI:
Apply the manifest:
After creating the instance, verify its status:
Create a High-Availability Instance
For production environments, set spec.instances to 2 or more to enable multiple replicas with shared session state.
Database Requirement
High-availability deployments require a highly available PostgreSQL backend. Ensure your database has replication or is a managed service before increasing the instance count.