Managed databases - Hikube

PostgreSQL, MariaDB, Redis, MongoDB, ClickHouse.
kubectlapply - that's it.

Five fully managed databases on Hikube. Automatic replication, failover, S3 backups, auto-generated credentials. Zero database-engine maintenance.

5 DBs

PostgreSQL - MariaDB - Redis - MongoDB - ClickHouse

Native HA

Automatic replication + failover

S3 backup

Scheduled encrypted backups

0 config

Automatically generated credentials
Comparison

The right engine for every use case

Each service is based on a recognised Kubernetes operator: CloudNativePG, MariaDB-Operator, Spotahome, Altinity. Lifecycle management (deployment, replication, failover, backup) is fully automated.

Service
Type
replication
use cases
PostgreSQL
Relational
Streaming + Failover
Transactional applications, APIs, SaaS
MariaDB
Relational
Binlog + auto-failover
CMS, e-commerce, legacy applications
Redis
Key-value
Sentinel + auto-failover
Cache, sessions, queues
MongoDB
Document
Replica Set + election
APIs, catalogs, semi-structured data
ClickHouse
Analytical (OLAP)
ReplicatedMergeTree + Keeper
Analytics, logs, data lake, OLAP
SERVICES

Each database in detail

Postgres

Automatic failover Streaming replication PITR

Managed PostgreSQL service based on CloudNativePG. A primary accepts writes; replicas are kept in sync by streaming replication from the primary. On failure, a replica is automatically promoted with no manual intervention.

Replicas are spread across different data centres: with replicas: 3, you get 1 primary + 2 standbys on 3 sites.

 

  • WAL + PITR backups
    WALs are continuously archived to S3. Restore to any point in time between two backups.
  • Declarative users and databases
    Declare users, databases, admin and readonly roles in the manifest. Credentials in an auto-generated Secret.
  • PostgreSQL extensions
    Enable uuid-ossp, pgcrypto, hstore and other extensions per database in the databases[name].extensions section.
  • Optional synchronous replication
    Set quorum.minSyncReplicas so a transaction is committed only after a replica confirms.

Production recommendation

replicas: 3 + quorum.minSyncReplicas: 1 for a good performance/durability trade-off.
yaml
kind: Postgres 
metadata:
name: example
spec:
replicas: 3
resourcesPreset: micro
size: 10Gi
users:
user1:
password: strongpassword
databases:
myapp:
roles:
admin:
- user1
readonly:
- user2
extensions:
- uuid-ossp
quorum:
minSyncReplicas: 0
maxSyncReplicas: 0
backup:
enabled: false
# destinationPath: s3://bucket/path/
# endpointURL: https://prod.s3.hikube.cloud
# retentionPolicy: 30d

 

Why managed

Less ops, more business code

Maintaining a database in production means handling version updates, monitoring replication, configuring backups, testing restore procedures and stepping in at 3 a.m. when a primary goes down. That isn't added value, it's infrastructure.

On Hikube, that burden disappears. You déclare what you want - database type, number of replicas, size, users - and the operator provisions, replicates, fails over and backs up automatically. Your teams focus on queries, schéma and application performance, not infrastructure.

Databases are hosted in Switzerland, in the same datacentre as your Kubernetes Hikube clusters. Latency between your application and your database is minimal, and your data never leaves Europe.

markup-cropped-2

Automatic failover without intervention

Primary down? The operator promotes a replica within seconds. No 3 a.m. alert, no manual action.

markup-cropped-2

Declarative scaling

Change replicas or size in the manifest, apply. The operator handles the rolling update with no downtime.

markup-cropped-2

Testable, scheduled backups

WAL archiving for PostgreSQL, Restic for MariaDB / MongoDB / ClickHouse. Configurable retention, documented restore. A backup that's never been tested is not a backup.

markup-cropped-2

Kubernetes-native credentials

Each database generates a Secret in your namespace. Inject it into your pods via envFrom, no plaintext keys in your manifests or Git repositories.

Use cases

Which base for which need?

Each engine has its strengths. Here are the concrete situations where each one is the right choice, and why.

Multi-tenant SaaS application

Each client has an isolated schema in the same PostgreSQL instance. ACID transactions, integrity constraints, complex joins. The secondary replica absorbs reporting queries without impacting the primary.

replicas: 3 - quorum: 1 - WAL backup

CMS and e-commerce platform

WordPress, Magento, PrestaShop. All these applications are built for MariaDB. Migration from a self-hosted MariaDB with no code changes. The external LoadBalancer gives direct access from administration tools.

replicas: 3 - external: true - Restic backup

Session cache and rate limiting

User sessions in a high-frequency API. Sub-millisecond latency, automatic key expiry (TTL), atomic counters for rate limiting. Sentinel guarantees continuity even if the master goes down.

replicas: 3 - authEnabled: true - storageClass: local

Product catalog and REST API

E-commerce catalog with attributes that vary by category (clothing, electronics, food). MongoDB's flexible schema avoids table migrations for each new product type. Indexing on any nested field...

replicas: 3 - Replica Set - Restic backup

Real-time analytics on application logs

Ingest billions of events (logs, metrics, clicks). Aggregated queries run in seconds, even on multi-terabyte tables, thanks to column storage and sharding. Ideal for BI dashboards and real-time alerts.

shards: 2 - replicas: 2 - Keeper: 3

Full stacks for an ML application

PostgreSQL for structured data (users, jobs), Redis for the ML job queue and results cache, MongoDB for model artefacts and metadata (variable structure), ClickHouse for real-time inference metrics.

PG + Redis + Mongo + ClickHouse
Common features

What all services share

Every database managed on Hikube exposes the same fundamental mechanisms, whatever the technology chosen.

  • Declarative deployment via kubectl
    1 YAML manifest, 1 kubectl apply. The operator provisions and maintains the cluster automatically.

  • Auto-generated credentials in a Secret
    Each service generates a <service>-<name>-credentials Secret containing the passwords. No manual access configuration of.

  • Integrated S3 backups
    PostgreSQL via WAL archiving + CloudNativePG. MariaDB and ClickHouse via Restic. To any compatible S3 endpoint, including Hikube buckets.

  • Resource presets or explicit config
    resourcesPreset (nano to 2xlarge) to start quickly. resources.cpu and resources.memory for production environments. Both are mutually exclusive.

range
Ration
RECOMMENDED USE
nano
250m
128 Mi
micro
500m
256 Mi
small
1 CPU
512 MI
medium
1 CPU
1 Gi
large
2 CPUs
2 Gi
xlarge
4 CPUs
4 Gi
2xwide
8 CPUs
8 Gi
FAQ

Questions about managed databases

Can I back up to Hikube S3 buckets?

Yes, that's the recommended use case. Create a Hikube bucket, retrieve the credentials from the generated Secret, and fill them into the backup section of your manifest. Your backups then stay in the same infrastructure, in Switzerland.

What's the difference between resourcesPreset and resources?

resourcesPreset applies a predefined profile (nano, micro, small...). This is the easiest way to get started. If you set resources.cpu and resources.memory explicitly, the preset is ignored entirely. The two are mutually exclusive: don't combine them in the same manifest.

Is ClickHouse suitable for my transactional requests?

No. ClickHouse is an OLAP engine optimised for analytical queries, aggregations or column scans on large volumes. It is not suited to frequent transactional operations (unitaryUPDATE / DELETE, ACID transactions). For transactional queries, use PostgreSQL or MariaDB on Hikube.

Is the MariaDB service compatible with my existing MySQL applications?

Yes, the MySQL service on Hikube is based on MariaDB, an open-source fork of MySQL that is fully compatible with the MySQL protocol, syntax and clients. Your applications, drivers and ORMs will work without modification.

How many Redis replicas are needed for automatic failover?

At least 3. Redis Sentinel needs a quorum: a majority of Sentinels (2 out of 3) must agree to trigger a failover. With replicas: 3, you get 3 Redis pods and 3 Sentinel pods, which guarantees quorum even if one Sentinel is unavailable.