From 2343edbe6bb167fdbac2b4f9c1215549bf09f147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sun, 26 Feb 2023 11:15:48 +0200 Subject: [PATCH] Add mysql-clusters namespace --- mysql-clusters/README.md | 8 ++ .../application.yaml | 101 ++++++++++-------- phpmyadmin/README.md | 5 - phpmyadmin/networkpolicy-base.yml | 1 - 4 files changed, 67 insertions(+), 48 deletions(-) create mode 100644 mysql-clusters/README.md rename phpmyadmin/application.yml => mysql-clusters/application.yaml (52%) delete mode 100644 phpmyadmin/README.md delete mode 120000 phpmyadmin/networkpolicy-base.yml diff --git a/mysql-clusters/README.md b/mysql-clusters/README.md new file mode 100644 index 0000000..04340f7 --- /dev/null +++ b/mysql-clusters/README.md @@ -0,0 +1,8 @@ +# MySQL clusters + +This is namespace for MySQL clusters managed by operator-bundle + +``` +kubectl create namespace mysql-clusters +kubectl apply -n mysql-clusters -f application.yaml +``` diff --git a/phpmyadmin/application.yml b/mysql-clusters/application.yaml similarity index 52% rename from phpmyadmin/application.yml rename to mysql-clusters/application.yaml index 3efb2c9..a128d12 100644 --- a/phpmyadmin/application.yml +++ b/mysql-clusters/application.yaml @@ -1,9 +1,53 @@ +--- +apiVersion: codemowers.io/v1alpha1 +kind: ClusterMysqlDatabaseClass +metadata: + name: external +spec: + targetCluster: external + targetNamespace: mysql-clusters + description: "MySQL instance running on the ZFS box" +--- +apiVersion: codemowers.io/v1alpha1 +kind: ClusterMysqlDatabaseClass +metadata: + name: shared +spec: + targetCluster: shared + targetNamespace: mysql-clusters + description: "Shared MySQL cluster" + replicas: 3 + routers: 2 + storageClass: mysql +--- +apiVersion: codemowers.io/v1alpha1 +kind: ClusterMysqlDatabaseClass +metadata: + name: dedicated +spec: + targetNamespace: mysql-clusters + description: "Dedicated MySQL cluster" + replicas: 3 + routers: 2 + storageClass: mysql +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: phpmyadmin + namespace: mysql-clusters +data: + config.user.inc.php: | +