You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
New to KubeDB? Please start here.
Recommendation for KubeDB
Production databases on Kubernetes need regular, careful maintenance — security patches, version upgrades, TLS certificate rotations, and credential rotations. Skipping them risks exposure to known CVEs, expired certificates that break clients, and stale secrets that violate compliance. Doing them by hand is error-prone and easy to forget.
KubeDB solves this by generating recommendations automatically, as Kubernetes-native CRDs, whenever a managed database needs a maintenance action. The Supervisor then executes the recommendation either immediately, on operator approval, or inside a scheduled maintenance window — with full status tracked on the resource itself.
Why it matters
- Security — older versions carry known vulnerabilities; expiring TLS certificates cause outages; stale auth secrets are an obvious attack surface.
- Compliance — auditors expect documented, repeatable rotation policies.
- Operational safety — execution is bounded by deadlines, retries, and (optionally) operator-approved windows, so disruptive ops never run at peak hours.
How recommendations flow
A Recommendation is a custom resource created by the KubeDB Ops-manager and reconciled by the Supervisor. You need both installed; the easiest path is to enable the Supervisor when installing KubeDB via Helm:
--set supervisor.enabled=true

- The KubeDB Provisioner reconciles user-provided database CRs and creates all required resources.
- Once the database is
Ready, the Ops-manager inspects it and creates aRecommendationwhenever an action is needed (vulnerable version, certificate near expiry, auth secret near rotation deadline, …). - The Supervisor watches the Recommendation, applies approval policies, waits for the configured maintenance window, and then creates the corresponding
OpsRequest(e.g.UpdateVersion,ReconfigureTLS,RotateAuth). - The Supervisor watches the OpsRequest and updates the Recommendation status (
Succeeded,Failed,Skipped, …) so the whole lifecycle is visible on one object.
Recommendation types
KubeDB generates three kinds of recommendations:
- Version Update Recommendation — upgrade to a patched/newer database version.
- TLS Certificate Rotation Recommendation — rotate certificates before expiry.
- Authentication Secret Rotation Recommendation — rotate database credentials.
Setup and configuration
- Recommendation Configuration — install Supervisor CRDs, enable the Supervisor via Helm, and tune generation timing flags.
Configuring scheduling and approval
For automation and execution control, refer to:
- Recommendation Spec & Status — complete field reference for the Recommendation CRD.
- Maintenance Window — namespace-scoped scheduling for automatic operations.
- Cluster Maintenance Window — cluster-wide default maintenance scheduling.
- Approval Policy — link maintenance windows to resources for automatic recommendation execution.
The following pages walk through each recommendation type, show how to approve or reject them, and explain how to automate execution with maintenance windows.































