Skip to content

Commit

Permalink
changed volume/volumemounts copy example for mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
verysonglaa committed Aug 18, 2023
1 parent 2e975db commit 4878dcd
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions content/en/docs/persistent-storage/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,21 @@ 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
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
...
```
Then apply the change with:
Expand Down

0 comments on commit 4878dcd

Please sign in to comment.