charts: added mariadb chart

This commit is contained in:
Sameer Naik
2016-03-14 13:31:35 +05:30
parent 711333d7a0
commit 2143a86a2b
5 changed files with 84 additions and 0 deletions

8
mariadb/Chart.yaml Normal file
View File

@@ -0,0 +1,8 @@
name: mariadb
home: https://github.com/bitnami/charts/tree/master/mariadb
version: 0.1.0
description: Chart for MariaDB
maintainers:
- Bitnami <containers@bitnami.com>
details: |-
MariaDB is a fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.

7
mariadb/README.md Normal file
View File

@@ -0,0 +1,7 @@
# MariaDB
Describe your chart here. Link to upstream repositories, Docker images or any
external documentation.
If your application requires any specific configuration like Secrets, you may
include that information here.

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: mariadb
labels:
provider: mariadb
heritage: bitnami
spec:
ports:
- port: 3306
selector:
provider: mariadb

View File

@@ -0,0 +1,56 @@
#helm:generate helm tpl -d tpl/values.toml -o manifests/mariadb-controller.yaml $HELM_GENERATE_FILE
apiVersion: v1
kind: ReplicationController
metadata:
name: mariadb
labels:
provider: mariadb
heritage: bitnami
spec:
replicas: 1
selector:
provider: mariadb
version: 5.5.48-0-r01
template:
metadata:
labels:
provider: mariadb
version: 5.5.48-0-r01
heritage: bitnami
spec:
containers:
- name: mariadb
image: bitnami/mariadb:5.5.48-0-r01
env:
- name: MARIADB_PASSWORD
value: {{default "bitnami" .databasePassword}}
ports:
- containerPort: 3306
livenessProbe:
exec:
command:
- mysqladmin
- ping
initialDelaySeconds: 15
timeoutSeconds: 1
readinessProbe:
exec:
command:
- mysqladmin
- ping
initialDelaySeconds: 5
timeoutSeconds: 1
volumeMounts:
- name: data
mountPath: /bitnami/mariadb/data
- name: conf
mountPath: /bitnami/mariadb/conf
- name: logs
mountPath: /bitnami/mariadb/logs
volumes:
- name: data
emptyDir: {}
- name: conf
emptyDir: {}
- name: logs
emptyDir: {}

1
mariadb/tpl/values.toml Normal file
View File

@@ -0,0 +1 @@
databasePassword = ""