Skip to content

Commit

Permalink
Merge pull request #550 from acend/mariaDBVolumesEdit
Browse files Browse the repository at this point in the history
changed volume/volumemounts copy example for mariadb
  • Loading branch information
verysonglaa authored Aug 18, 2023
2 parents 2e975db + 8e72365 commit b90e635
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions content/en/docs/persistent-storage/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit b90e635

Please sign in to comment.