MariaDB
- By Charmed Distribution of OSM
- Cloud
Channel | Version | Revision | Published | Runs on |
---|---|---|---|---|
latest/stable | 35 | 35 | 08 Apr 2021 | |
latest/candidate | 35 | 35 | 08 Apr 2021 | |
latest/edge | 35 | 35 | 08 Apr 2021 |
juju deploy charmed-osm-mariadb-k8s
You will need Juju 2.9 to be able to run this command. Learn how to upgrade to Juju 2.9.
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:
MariaDB Operator
A Juju charm deploying and managing MariaDB on Kubernetes.
Overview
MariaDB turns data into structured information in a wide array of applications, ranging from banking to websites. Originally designed as enhanced, drop-in replacement for MySQL, MariaDB is used because it is fast, scalable and robust, with a rich ecosystem of storage engines, plugins and many other tools make it very versatile for a wide variety of use cases.
MariaDB is developed as open source software and as a relational database it provides an SQL interface for accessing data. The latest versions of MariaDB also include GIS and JSON features.
More information can be found in the MariaDB Knowledge Base.
Usage
For details on using Kubernetes with Juju see here, and for details on using Juju with MicroK8s for easy local testing see here.
To deploy the charm into a Juju Kubernetes model:
juju deploy cs:~charmed-osm/mariadb
The charm can then be easily related to an application that supports the mysql relation, such as:
juju deploy cs:~charmed-osm/keystone
juju relate keystone mariadb-k8s
Once the "Workload" status of both mariadb-k8s and keystone is "active", using
the "Application" IP of keystone (from juju status
):
# Change as appropriate for you juju model
KEYSTONE_APPLICATION_IP=10.152.183.222
curl -i -H "Content-Type: application/json" -d '
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "admin",
"domain": { "id": "default" },
"password": "admin"
}
}
}
}
' "http://${KEYSTONE_APPLICATION_IP}:5000/v3/auth/tokens" ; echo
This will create a token that you could use to query Keystone.
For more details, see here.