Charmed MySQL K8s
- Canonical
- Databases
Channel | Revision | Published | Runs on |
---|---|---|---|
8.0/stable | 180 | 02 Sep 2024 | |
8.0/stable | 181 | 02 Sep 2024 | |
8.0/candidate | 180 | 26 Aug 2024 | |
8.0/candidate | 181 | 26 Aug 2024 | |
8.0/beta | 207 | 15 Nov 2024 | |
8.0/beta | 206 | 15 Nov 2024 | |
8.0/edge | 207 | 09 Oct 2024 | |
8.0/edge | 206 | 09 Oct 2024 |
juju deploy mysql-k8s --channel 8.0/stable
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
How to integrate a database with your charm
Charmed MySQL K8s can be integrated with any charmed application that supports its interfaces. This page provides some guidance and resources for charm developers to develop, integrate, and troubleshoot their charm so that it may connect with MySQL.
Summary
- Check supported interfaces
- Integrate your charm with MySQL
- Troubleshooting & testing
- FAQ
Check supported interfaces
First, we recommend that you check the supported interfaces of the current charm. You have the option to use modern (preferred) or legacy interfaces.
Most existing charms currently use ops-lib-pgsql interface (legacy).
See also: MySQL K8s legacy charm explanation
For new charms, Canonical recommends using data-platform-libs.
Integrate your charm with MySQL
See also:
Refer to mysql-test-app as a practical example of implementing data-platform-libs interfaces to integrate a charm with Charmed MySQL K8s.
Troubleshooting and testing
- To learn the basics of charm debugging, start with Juju | How to debug a charm
- To troubleshoot Charmed MySQL, see the Troubleshooting page.
- To test the charm, check the Testing reference
FAQ
Does the requirer need to set anything in relation data?
It depends on the interface. Check the
mysql_client
interface requirements.
Is there a charm library available, or does my charm need to compile the mysql relation data on its own?
Yes, a library is available: data-platform-libs.
How do I obtain the database url/uri?
This feature is planned but currently missing.
Contact us if you have any questions, issues and/or ideas!