Add configurable resource reqs/limits to MariaDB (#179)

This commit is contained in:
Adnan Abdulhussein
2016-11-03 13:55:36 -07:00
committed by Vic Iglesias
parent 9d95850774
commit a595e3f4c5
4 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mariadb
version: 0.5.2
version: 0.5.3
description: Chart for MariaDB
keywords:
- mariadb
+1
View File
@@ -57,6 +57,7 @@ The following tables lists the configurable parameters of the MariaDB chart and
| `persistence.storageClass` | Storage class of backing PVC | `generic` |
| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` |
| `persistence.size` | Size of data volume | `8Gi` |
| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` |
| `config` | Multi-line string for my.cnf configuration | `nil` |
The above parameters map to the env variables defined in [bitnami/mariadb](http://github.com/bitnami/bitnami-docker-mariadb). For more information please refer to the [bitnami/mariadb](http://github.com/bitnami/bitnami-docker-mariadb) image documentation.
+2
View File
@@ -68,6 +68,8 @@ spec:
- ping
initialDelaySeconds: 5
timeoutSeconds: 1
resources:
{{ toYaml .Values.resources | indent 10 }}
volumeMounts:
- name: data
mountPath: /bitnami/mariadb
+8
View File
@@ -41,3 +41,11 @@ persistence:
# config: |-
# [mysqld]
# innodb_buffer_pool_size=2G
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
requests:
memory: 256Mi
cpu: 250m