Overview of cnmsql instance images
1001.website·Indexed 30 days ago
https://cnmsql.coDocumentation for cnmsql, a Kubernetes operator for managing MySQL and MariaDB clusters. Covers cluster lifecycle, Group Replication, point-in-time recovery (PITR), automated backups, autoscaling, and the mysql.cnmsql.co/v1alpha1 API reference. Includes guides on storage configuration, multi-tenancy models, and security trust boundaries for versions 0.5 through 0.7.
1001.Cluster resource. The operator automates the provisioning of Pods, PVCs, credentials, TLS, and role-routed Services, while handling replication, failover, backups, and point-in-time recovery (PITR).cnmsql provides three ways to declare MySQL accounts depending on ownership and scope:
spec.managed.roles (Cluster): Used for cluster-level accounts owned by the platform team. Editing these requires editing the shared Cluster object.Database.spec.users[] (Database): Used for accounts tied to a single schema; grants default to that schema.DatabaseUser (Custom Resource): Used for application-team accounts that span several schemas (or none), managed independently of the Cluster object.Cluster resource, the operator automatically provisions Pods, PVCs, credentials, TLS, and role-routed Services. It handles critical database operations including replication, failover, backups, and point-in-time recovery (PITR).targetGTID uses the domain-server-seq format (e.g., 0-1-16) and is supported for a single replication domain.ScheduledBackup is a scheduling layer for physical backups. It does not move data itself; instead, it creates Backup objects on a cron cadence. The existing Backup controller then handles the XtraBackup-to-object-store data path. For one-off on-demand backups, use the CLI instead of a YAML manifest.kubectl cnmysql backup <cluster>Cluster resource, the operator automates the provisioning of Pods, PVCs, credentials, TLS, and role-routed Services. It handles complex database operations including replication, failover, physical backups via XtraBackup to S3, and point-in-time recovery (PITR).Logical backups in cnmsql are SQL dumps of application schemas stored in an object store. They are primarily used for partial restores (single database), moving data across different server versions (e.g., 8.0 to 9.x), or exporting schemas for development.
Unlike physical backups (xtrabackup), logical backups:
--single-transaction to ensure a consistent snapshot for InnoDB tables.