Skip to content

Commit ec90482

Browse files
committed
review mysql,percona,proxy
Signed-off-by: Bonusree <[email protected]>
1 parent 53a888a commit ec90482

File tree

6 files changed

+25
-13
lines changed

6 files changed

+25
-13
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: kubedb.com/v1
2+
kind: MariaDB
3+
metadata:
4+
name: mariadb
5+
namespace: demo
6+
spec:
7+
version: "10.5.23"
8+
replicas: 3
9+
storageType: Durable
10+
storage:
11+
storageClassName: standard
12+
accessModes:
13+
- ReadWriteOnce
14+
resources:
15+
requests:
16+
storage: 1Gi
17+
deletionPolicy: WipeOut

docs/examples/redis/restart/redis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
resources:
1414
requests:
1515
storage: 1Gi
16-
storageClassName: local-path
16+
storageClassName: standard
1717
accessModes:
1818
- ReadWriteOnce
1919
deletionPolicy: WipeOut

docs/guides/mariadb/restart/restart.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ spec:
4646
replicas: 3
4747
storageType: Durable
4848
storage:
49-
storageClassName: local-path
5049
accessModes:
5150
- ReadWriteOnce
5251
resources:
@@ -58,7 +57,7 @@ spec:
5857
Let's create the `MariaDB` CR we have shown above,
5958

6059
```bash
61-
$ kubectl create -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/examples/MariaDB/restart/MariaDB.yaml
60+
$ kubectl create -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/examples/mariadb/restart/MariaDB.yaml
6261
MariaDB.kubedb.com/mariadb created
6362
```
6463

@@ -81,10 +80,10 @@ spec:
8180
- `spec.type` specifies the Type of the ops Request
8281
- `spec.databaseRef` holds the name of the MariaDB database. The db should be available in the same namespace as the opsRequest
8382
- The `spec.timeout` field specifies the maximum amount of time the operator will wait for the operation to complete before marking it as failed.
84-
- The `spec.apply` field determines whether the operation should always be applied (Always) or only when there are changes (IfReady).
83+
- The `spec.apply` field determines whether the operation should always be applied (Always) or if the database phase is ready (IfReady).
8584

8685

87-
> Note: The method of restarting the standalone & cluster mode db is exactly same as above. All you need, is to specify the corresponding MairiDB name in `spec.databaseRef.name` section.
86+
> Note: The method of restarting the standalone & cluster mode db is exactly same as above. All you need, is to specify the corresponding MariaDB name in `spec.databaseRef.name` section.
8887

8988
Let's create the `MariaDBOpsRequest` CR we have shown above,
9089

@@ -95,7 +94,6 @@ MariaDBopsrequest.ops.kubedb.com/restart created
9594
```
9695

9796
In `MariaDB`, all pods act as primary, so the Ops-manager operator will restart the pods one by one in sequence.
98-
> Note: This will not restart the arbiter pod if you have one. Arbiter pod doesn't have any data related to your database. So you can ignore restarting this pod because no restart is necessary for arbiter pod but if you want so, just kubectl delete the arbiter pod (dbName-arbiter-0) in order to restart it.
9997

10098
```shell
10199
$ kubectl get mariaops -n demo restart

docs/guides/mysql/restart/restart.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ spec:
8282
- `spec.type` specifies the Type of the ops Request
8383
- `spec.databaseRef` holds the name of the MySQL database. The db should be available in the same namespace as the opsRequest
8484
- The `spec.timeout` field specifies the maximum amount of time the operator will wait for the operation to complete before marking it as failed.
85-
- The `spec.apply` field determines whether the operation should always be applied (Always) or only when there are changes (IfReady).
85+
- The `spec.apply` field determines whether the operation should always be applied (Always) or if the database phase is ready (IfReady).
8686

8787
Let's create the `MySQLOpsRequest` CR we have shown above,
8888

@@ -96,8 +96,7 @@ In MySQL, pods follow a `primary-standby` architecture:
9696
- The `primary` pod is restarted last.
9797
- During the primary pod restart, one of the standby pods is automatically promoted to primary to ensure continuous availability.
9898

99-
> Note: This will not restart the arbiter pod if you have one. Arbiter pod doesn't have any data related to your database. So you can ignore restarting this pod because no restart is necessary for arbiter pod but if you want so, just kubectl delete the arbiter pod (dbName-arbiter-0) in order to restart it.
100-
99+
Now, let's see the status of the `MySQLOpsRequest` we just created.
101100
```shell
102101
$ kubectl get myops -n demo
103102
NAME TYPE STATUS AGE

docs/guides/percona-xtradb/restart/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ spec:
5050
replicas: 3
5151
storageType: Durable
5252
storage:
53-
storageClassName: "local-path"
5453
accessModes:
5554
- ReadWriteOnce
5655
resources:
@@ -141,7 +140,7 @@ Here,
141140

142141
- `spec.timeout` the maximum time the operator will wait for the operation to finish before marking it as failed.
143142

144-
- `spec.apply` determines whether to always apply the operation (Always) or only if there are changes (IfReady).
143+
- `spec.apply` determines whether to always apply the operation (Always) or if the database phase is ready (IfReady).
145144

146145
Let's create the `PerconaXtraDBOpsRequest` CR we have shown above,
147146

@@ -174,7 +173,6 @@ pxc-1 2/2 Running 0 42s
174173
pxc-2 2/2 Terminating 0 56m
175174
176175
```
177-
> Note: The arbiter pod (if any) is not restarted by the operator. The arbiter doesn’t store any database data, so it doesn’t require a restart. If you want to restart it manually, simply run kubectl delete pod <db-name>-arbiter-0.
178176

179177
```shell
180178
$ kubectl get PerconaXtraDBopsrequest -n demo

docs/guides/percona-xtradb/restart/yamls/pxc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
replicas: 3
99
storageType: Durable
1010
storage:
11-
storageClassName: "local-path"
11+
storageClassName: "standard"
1212
accessModes:
1313
- ReadWriteOnce
1414
resources:

0 commit comments

Comments
 (0)