User Guide · Build a cluster · Kubernetes & Docker

Kubernetes & Docker

Jarwis manages databases that run in containers as well as on plain Linux servers. Two paths exist: Docker / Podman containers on an enrolled node, and Kubernetes clusters you connect from the Kubernetes screen.

Docker & Podman containers

A database already running in a Docker or Podman container on an enrolled node can be adopted through Import existing. Jarwis detects the container runtime, discovers the engine inside the container (MySQL, MariaDB, PostgreSQL, Redis, MongoDB, RabbitMQ, ClickHouse and Kafka), and manages it without touching the image or the data volume. Container logs are collected into the central log store like any other node log.

Containers have fewer controls Some host-level features are not available for containerized databases — for example binlog point-in-time recovery. The console hides or disables a control when it does not apply.

Kubernetes

Open Kubernetes in the sidebar and click Connect cluster. Give Jarwis a kubeconfig, or the API server URL with a ServiceAccount token (and optionally the CA certificate). Use Test connection before saving. Namespaces can be limited with a comma-separated list; leave it empty for all.

/kubernetes → Connect cluster
Connect cluster dialog
The Connect cluster dialog on the Kubernetes screen.

Once connected, Jarwis:

  • Discovers database custom resources (operator-managed clusters) and plain StatefulSets.
  • Reads pod logs so you can search them next to your other logs.
  • Backs up supported databases by running the logical backup inside the pod (through pods/exec), and triggers native backups where the operator offers them (for example a CloudNativePG Backup).
  • Scales operator-managed databases by changing the replica count on the operator's resource — Jarwis delegates the actual work to the operator.

Provisioning through operators

For new databases on Kubernetes, Jarwis creates the operator's resource rather than installing packages itself. Eight engines are supported, each through its operator:

EngineOperator
PostgreSQLCloudNativePG
MySQL / Percona XtraDB ClusterPercona Operator for MySQL (PXC)
MariaDBmariadb-operator
MongoDBPercona Operator for MongoDB
RedisRedis operator (OpsTree)
RabbitMQRabbitMQ Cluster Operator
KafkaStrimzi
ClickHouseAltinity ClickHouse Operator

Choose the engine, topology (Single instance or Cluster with automatic failover), name, namespace, version, and storage size, then click Create. If the operator is not installed yet, Jarwis says so and offers an Install button (labelled with the operator's name) (this needs cluster-admin rights on the Kubernetes cluster; operators that need cert-manager get it installed first). The new database appears in Database workloads with its in-cluster endpoint.

Safety defaults

  • Delete is limited — Jarwis only deletes databases it created itself. Databases that were discovered, not created, can be detached but never deleted from Jarwis.
  • Secrets stay in Kubernetes — reading Kubernetes Secrets (for example to show a generated password) is off by default and must be enabled explicitly on the connection.
  • Least privilege — use a service account whose RBAC is limited to the namespaces and resources you want Jarwis to manage: read access to pods, pod logs, StatefulSets and the operators' resources, pods/exec for backups, and patch for scaling.
Running the controller on Kubernetes Separately from managing databases in Kubernetes, the Jarwis controller itself can be deployed with its Helm chart. See the Quick start.