Migrate Embedded MaxScale To MaxScale Resource
In this guide, we will be migrating a MaxScale embedded in a MariaDB resource to it's own resource.
apiVersion: enterprise.mariadb.com/v1alpha1
kind: MariaDB
metadata:
name: mariadb
spec:
+ maxScaleRef:
+ name: mariadb-maxscale
- # Provision a MaxScale instance and set 'spec.maxScaleRef' automatically.
- maxScale:
- enabled: true
- connection:
- secretName: mxs-repl-conn
- port: 3306
- metrics:
- enabled: true1. Get the migration script and grant execute permissions:
curl -sLO https://operator.mariadb.com/scripts/migrate_maxscale_to_resource.sh
chmod +x migrate_maxscale_to_resource.sh2. Migrate all of your existing MariaDB resources where MaxScale is embedded.
./migrate_maxscale_to_resource.sh <mariadb_manifest.yaml>This will have created new <migrated.mariadb_manifest.yaml> manifests.
3. Inspect the newly created manifests and overwrite the source manifests if satisfied with the changes.
This page is: Copyright © 2025 MariaDB. All rights reserved.
Last updated
Was this helpful?

