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 | 203 | 07 Oct 2024 | |
8.0/beta | 202 | 07 Oct 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 deploy on Canonical Kubernetes
Canonical Kubernetes is built on Ubuntu and combines security with optimal price-performance. Canonical is a Certified Kubernetes Service Provider, your trusted advisor for a successful cloud native strategy. This manual shows you simplicity of deploying Charmed MySQL K8s to Canonical Kubernetes.
Summary
Assuming you have a spare hardware/VMs running Ubuntu 22.04 LTS (or newer). The only necessary steps will be:
Install Canonical Kubernetes
Follow the official and detailed guide or simply run:
sudo snap install k8s --edge --classic
sudo k8s bootstrap
sudo k8s status --wait-ready
Once Canonical K8s is up and running, enable the local storage (or any another persistent volumes provider, to be used by Juju Storage later):
sudo k8s enable local-storage
sudo k8s status --wait-ready
(Optional) Install kubectl tool and dump the K8s config:
sudo snap install kubectl --classic
mkdir ~/.kube
sudo k8s config > ~/.kube/config
kubectl get namespaces # to test the credentials
Install Juju
Install Juju and bootstrap the first Juju controller in K8s:
sudo snap install juju --channel 3.6/candidate
juju add-k8s ck8s --client --context-name="k8s"
juju bootstrap ck8s
Deploy Charmed MySQL K8s
juju add-model mysql
juju deploy mysql-k8s --trust
follow the deployment progress using:
juju status --watch 1s
Example output:
Model Controller Cloud/Region Version SLA Timestamp
mysql ck8s ck8s 3.6-rc1 unsupported 18:32:38+01:00
App Version Status Scale Charm Channel Rev Address Exposed Message
mysql-k8s 8.0.37-0ubuntu0.22.04.3 active 1 mysql-k8s 8.0/stable 180 10.152.183.146 no
Unit Workload Agent Address Ports Message
mysql-k8s/0* active idle 10.1.0.11 Primary
Follow the further steps in Tutorial to scale your application, relate with other applications and more!