diff --git a/stable/mysql/Chart.yaml b/stable/mysql/Chart.yaml index 20d3371796..4c7f06ce6e 100755 --- a/stable/mysql/Chart.yaml +++ b/stable/mysql/Chart.yaml @@ -1,5 +1,5 @@ name: mysql -version: 0.16.0 +version: 0.17.0 appVersion: 5.7.14 description: Fast, reliable, scalable, and easy to use open-source relational database system. diff --git a/stable/mysql/README.md b/stable/mysql/README.md index 1bfe4c94c4..e3bfa197ad 100755 --- a/stable/mysql/README.md +++ b/stable/mysql/README.md @@ -46,6 +46,7 @@ The following table lists the configurable parameters of the MySQL chart and the | Parameter | Description | Default | | -------------------------------------------- | -------------------------------------------------------------------------------------------- | ---------------------------------------------------- | +| `initContainer.resources` | initContainer resource requests/limits | Memory: `10Mi`, CPU: `10m` | | `image` | `mysql` image repository. | `mysql` | | `imageTag` | `mysql` image tag. | `5.7.14` | | `busybox.image` | `busybox` image repository. | `busybox` | diff --git a/stable/mysql/templates/deployment.yaml b/stable/mysql/templates/deployment.yaml index 6c471fc25c..27d4113b42 100644 --- a/stable/mysql/templates/deployment.yaml +++ b/stable/mysql/templates/deployment.yaml @@ -31,6 +31,8 @@ spec: - name: "remove-lost-found" image: "{{ .Values.busybox.image}}:{{ .Values.busybox.tag }}" imagePullPolicy: {{ .Values.imagePullPolicy | quote }} + resources: +{{ toYaml .Values.initContainer.resources | indent 10 }} command: ["rm", "-fr", "/var/lib/mysql/lost+found"] volumeMounts: - name: data diff --git a/stable/mysql/values.yaml b/stable/mysql/values.yaml index 3563e823da..4d888540c8 100644 --- a/stable/mysql/values.yaml +++ b/stable/mysql/values.yaml @@ -177,3 +177,11 @@ podLabels: {} ## Set pod priorityClassName # priorityClassName: {} + + +## Init container resources defaults +initContainer: + resources: + requests: + memory: 10Mi + cpu: 10m