Skip to content

canonical/mysql-operators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,141 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MySQL operators

Charmhub Charmhub Release Tests

Description

The Charmed MySQL Server is a database operator build for the Juju framework. It can be deployed on bare metal (using a LXD controller) or on Kubernetes (using a microk8s controller).

Usage

Deploying this charm depends on the substrate of choice

Kubernetes

juju add-model mysql
juju deploy mysql-k8s --channel 8.0/stable
juju status --watch 1s

Bare metal

juju add-model mysql
juju deploy mysql --channel 8.0/stable
juju status --watch 1s

To remove the deployment, run:

juju destroy-model mysql --destroy-storage --yes

Documentation

Please follow the tutorial guide (K8s or VM) with detailed explanation how to access DB, configure cluster, change credentials and/or enable TLS.

Relations

Relations are the standard way to interconnect multiple Juju operators. There relations are defined over well-defined interfaces, that both requirer and provider operators must support.

Example:

juju add-model mysql
juju deploy mysql --channel 8.0/stable
juju deploy mysql-test-app

# Relate MySQL with your application
juju relate mysql:database mysql-test-app:database

Interfaces:

  • mysql_client: standard interface to connect to the database.

Contributing

To build the charms:

(cd kubernetes && charmcraft pack)
(cd machines && charmcraft pack)

Please see the Juju SDK docs for guidelines on enhancements to this charm following best practice guidelines, and CONTRIBUTING.md for further developer guidance.

About

Charmed operators for MySQL Server

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 31

Languages