mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Add configurable resource reqs/limits to MariaDB (#179)
This commit is contained in:
committed by
Vic Iglesias
parent
9d95850774
commit
a595e3f4c5
@@ -1,5 +1,5 @@
|
||||
name: mariadb
|
||||
version: 0.5.2
|
||||
version: 0.5.3
|
||||
description: Chart for MariaDB
|
||||
keywords:
|
||||
- mariadb
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -68,6 +68,8 @@ spec:
|
||||
- ping
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 1
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 10 }}
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /bitnami/mariadb
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user