From 8e723651fb3dc11ad6365e664b08ab95698b980a Mon Sep 17 00:00:00 2001 From: verysonglaa <39988258+verysonglaa@users.noreply.github.com> Date: Fri, 18 Aug 2023 09:25:18 +0200 Subject: [PATCH] changed volume/volumemounts copy example for mariadb --- content/en/docs/persistent-storage/_index.md | 28 +++++++++----------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/content/en/docs/persistent-storage/_index.md b/content/en/docs/persistent-storage/_index.md index c2b7384a..9f457abc 100644 --- a/content/en/docs/persistent-storage/_index.md +++ b/content/en/docs/persistent-storage/_index.md @@ -71,25 +71,23 @@ We now have to insert the volume definition in the correct section of the MariaD Change your local `mariadb.yaml` file and add the `volumeMounts` and `volumes` parts: -```yaml -... - resources: {} - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - # start to copy here - volumeMounts: - - name: mariadb-data - mountPath: /var/lib/mysql +{{< highlight YAML "hl_lines=8-15" >}} + resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 50m + memory: 128Mi + # start to copy here + volumeMounts: + - name: mariadb-data + mountPath: /var/lib/mysql volumes: - name: mariadb-data persistentVolumeClaim: claimName: mariadb-data - # stop to copy here - dnsPolicy: ClusterFirst - restartPolicy: Always - schedulerName: default-scheduler -... -``` +{{< /highlight >}} Then apply the change with: