From 8751fe46a3bcc048d415ab69423ce263157fa9bc Mon Sep 17 00:00:00 2001 From: Edwin Mundo Date: Sun, 13 Mar 2022 19:46:41 -0400 Subject: [PATCH] Instructions on how to raise the default pvc size I am changing the README.md file to add instructions on how to raise the default PVC size form 2Gi to 80Gi --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index d331eba..e1f89db 100644 --- a/README.md +++ b/README.md @@ -399,6 +399,28 @@ mysqlsh -h127.0.0.1 -P6446 -uroot -p When promted enter the password used, when creating the Secret above. +## Additional Manifest Configurations + +If you are looking for a way to increase the size of the private volume claims (PVCs) that is used by the database pods. you can modify the default manifest found [**here**](https://raw.githubusercontent.com/mysql/mysql-operator/trunk/samples/sample-cluster.yaml) to use the `datadirVolumeClaimTemplate` configuration. This configuration takes the `volumeClaimTemplates.spec` section of a `volumeClaimTemplates` configuration and patches the default configuration. + +```yaml +apiVersion: mysql.oracle.com/v2alpha1 +kind: InnoDBCluster +metadata: + name: mycluster +spec: + secretName: mypwds + instances: 3 + router: + instances: 1 + datadirVolumeClaimTemplate: + accessModes: [ "ReadWriteOnce" ] + resources: + requests: + storage: 80Gi +``` + + ## More Information For more information please refer to the documentation at