Skip to content

Commit

Permalink
Add an example for initContainer usage
Browse files Browse the repository at this point in the history
Relates to #600.
  • Loading branch information
baurmatt authored and AMecea committed Oct 17, 2020
1 parent dfdea2b commit d9a3f08
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
* Add the ability to set the `imagePullSecrets` for the operator statefulset.
* Add Google Drive via service account as backup option.
* Add `initBucketURL` and `initBucketSecretName` options to MysqlCluster chart. This bumps the chart version to `0.3.0`
* Add an example of how initContainers can be used to fix hostPath permissions.
### Changed
* Only add `binlog-space-limit` for `percona` image
* Make user-defined InitContainer take the precedence
Expand Down
13 changes: 13 additions & 0 deletions examples/example-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ spec:
# tolerations: []
# priorityClassName:
# serviceAccountName: default
# # Use a initContainer to fix the permissons of a hostPath volume.
# initContainers:
# - name: volume-permissions
# image: busybox
# securityContext:
# runAsUser: 0
# command:
# - sh
# - -c
# - chmod 750 /data/mysql; chown 999:999 /data/mysql
# volumeMounts:
# - name: data
# mountPath: /data/mysql

## Specify additional volume specification
# volumeSpec:
Expand Down

0 comments on commit d9a3f08

Please sign in to comment.