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: | +