Using MySQL and MariaDB SQL databases
MySQL is a relational database that uses the SQL language to read and write information. It’s one of the most used databases on the internet. MariaDB is a fork of MySQL and the version used in this example is fully compatible with MySQL. It’s a very fast SQL database and it’s simple to use. After this brief introduction to MySQL, let’s get started deploying this database by following the next steps:
- Create the MySQL deployment creating a PersistentVolumeClaim called
db-pv-claim
:$ cat <<EOF | kubectl apply -f - apiVersion: apps/v1 kind: Deployment metadata: name: mysql spec: selector: matchLabels: app: mysql strategy: type: Recreate template: metadata: labels: app: mysql...