Repository navigation
kividb-operator v0.6.0
A new management GUI. The default engine stays kividb 1.1.2.
Read before upgrading: with GUI authentication on, the GUI now has its
own sign-in page and session cookie in place of the browser's Basic-auth
box. Scripts that call the API with Basic auth (curl -u) keep working.
Added
- A sign-in page (
/login). Signing in sets a session cookie
(HttpOnly, SameSite=Lax, Secure over HTTPS, 12 hours), signed with a
random key made when the GUI starts: nothing in it is derived from the
password, and a restart (which changing the password needs) ends every
session. Pages redirect to it when signed out,
and come back to where you were; the API answers 401 without the header
that makes browsers show their own login box. Ten failed attempts from
one address lock it out for five minutes. Sign out is in the top
bar. Basic auth still works for scripts. - Dashboard overview. Summary tiles (clusters; healthy, needing
attention, in error; memory, commands per second and clients across all
pods), a search box and a health filter, and for each cluster its engine
version and build, a pod bar, and sparklines of the last hour's commands
per second and memory. The figures come from the GUI's own scrapes, so
the dashboard is still oneListofKividbClusters. - Topology on a cluster's page: the master and its replicas, each with
its readiness, memory, keys, replication offset and node, and how far each
replica is behind the master. - Charts with axes, a hover readout of every pod, a legend, and a 1 h /
6 h / 24 h range: commands per second, memory and clients per pod, and
each replica's replication lag (which replaces the raw offset chart). - New cluster (
/new): a form for the name, namespace, build (standard,
lua, tls, full), replicas, storage, memory and CPU, storage class, master
service type, backups and monitoring. The manifest beside it is the API
server's dry run of the form, updated as you type, so a mistake shows
before anything is created; it can be copied forkubectl apply. Picking
a build sets the matching image as well asspec.variant(the operator
never derives one from the other). Creating needs GUI authentication, as
every other change does.POST /api/clusters(?dryRun=1for the
preview) andGET /api/create-optionsback it. - Light and dark themes, following the system setting until you pick
one; a layout for phones and tablets. - Logs: a line count, follow mode, highlighting, and errors and warnings
in colour. Console (the RESP explorer): replies printed as
redis-cliprints them, quoted arguments, and history on ↑ / ↓. GET /api/session: whether the GUI accepts changes. On a read-only GUI
every button that would only be refused is disabled, and says why.
Changed
- Confirmations are in-page dialogs, not the browser's
confirmand
prompt; deleting a cluster asks for its name. Results show as toasts. - The cluster page's tabs are Overview, Metrics, Logs, Console, Backups,
and Events & operations. - The GUI's ClusterRole (chart and
config/gui/rbac.yaml) addscreateon
kividbclustersandget/listonstorageclasses, for the new-cluster
form. - Default agent image
docker.io/kividb/kividb-operator-agent:0.6.0.
AKividbClusterthat leavesspec.agentImageunset rolls its pods to
it, one by one, when the operator is upgraded. - The chart is signed with cosign, and Artifact Hub's repository metadata
is published with it (from #8).