Skip to content

Commit

Permalink
Include removed yamls
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Feb 26, 2025
1 parent 86aa740 commit 7623e2e
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docs/guides/proxysql/quickstart/mysqlgrp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,33 @@ $ kubectl apply -f https://github.com/kubedb/docs/raw/{{< param "info.version" >
mysql.kubedb.com/mysql-server created
```

```yaml
apiVersion: kubedb.com/v1alpha2
kind: MySQL
metadata:
 name: mysql-server
 namespace: demo
spec:
 version: "5.7.44"
 replicas: 3
 topology:
 mode: GroupReplication
 storageType: Durable
 storage:
 storageClassName: "standard"
 accessModes:
- ReadWriteOnce
 resources:
 requests:
 storage: 1Gi
 terminationPolicy: WipeOut
```
```bash
$ kubectl apply -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/guides/proxysql/quickstart/mysqlgrp/examples/sample-mysql-v1alpha2.yaml
mysql.kubedb.com/mysql-server created
```

Let's wait for the MySQL to be Ready.

```bash
Expand Down Expand Up @@ -125,6 +152,25 @@ With the following yaml we are going to create our desired ProxySQL server.

`Note`: If your `KubeDB version` is less or equal to `v2024.6.4`, You have to use `v1alpha2` apiVersion.

```yaml
apiVersion: kubedb.com/v1
kind: ProxySQL
metadata:
name: proxy-server
namespace: demo
spec:
version: "2.3.2-debian"
replicas: 1
syncUsers: true
backend:
name: mysql-server
deletionPolicy: WipeOut
```
```bash
$ kubectl apply -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/guides/proxysql/quickstart/mysqlgrp/examples/sample-proxysql-v1.yaml
proxysql.kubedb.com/proxysql-server created
```

```yaml
apiVersion: kubedb.com/v1alpha2
kind: ProxySQL
Expand Down

0 comments on commit 7623e2e

Please sign in to comment.