[stable/mariadb] use credentials in exec probes (#3811)

* use credentials for health check

* refactor app label to meet best practices

* exec probes within bash to access valueFrom env vars
This commit is contained in:
Christoph Hösler
2018-03-13 05:35:09 -07:00
committed by k8s-ci-robot
parent 8c57580a10
commit 1a381d1539
6 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mariadb
version: 2.1.8
version: 2.1.9
appVersion: 10.1.31
description: 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.
keywords:
+1 -1
View File
@@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: {{ template "mariadb.fullname" . }}
labels:
app: {{ template "mariadb.fullname" . }}
app: {{ template "mariadb.name" . }}
chart: {{ template "mariadb.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
+8 -6
View File
@@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: {{ template "mariadb.fullname" . }}
labels:
app: {{ template "mariadb.fullname" . }}
app: {{ template "mariadb.name" . }}
chart: {{ template "mariadb.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
@@ -11,7 +11,7 @@ spec:
template:
metadata:
labels:
app: {{ template "mariadb.fullname" . }}
app: {{ template "mariadb.name" . }}
spec:
securityContext:
runAsUser: 1001
@@ -58,15 +58,17 @@ spec:
livenessProbe:
exec:
command:
- mysqladmin
- ping
- bash
- -c
- mysqladmin ping{{ if .Values.usePassword }} -uroot -p$MARIADB_ROOT_PASSWORD{{ end }}
initialDelaySeconds: 30
timeoutSeconds: 5
readinessProbe:
exec:
command:
- mysqladmin
- ping
- bash
- -c
- mysqladmin ping{{ if .Values.usePassword }} -uroot -p$MARIADB_ROOT_PASSWORD{{ end }}
initialDelaySeconds: 5
timeoutSeconds: 1
resources:
+1 -1
View File
@@ -4,7 +4,7 @@ apiVersion: v1
metadata:
name: {{ template "mariadb.fullname" . }}
labels:
app: {{ template "mariadb.fullname" . }}
app: {{ template "mariadb.name" . }}
chart: {{ template "mariadb.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
+1 -1
View File
@@ -4,7 +4,7 @@ kind: Secret
metadata:
name: {{ template "mariadb.fullname" . }}
labels:
app: {{ template "mariadb.fullname" . }}
app: {{ template "mariadb.name" . }}
chart: {{ template "mariadb.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
+2 -2
View File
@@ -3,7 +3,7 @@ kind: Service
metadata:
name: {{ template "mariadb.fullname" . }}
labels:
app: {{ template "mariadb.fullname" . }}
app: {{ template "mariadb.name" . }}
chart: {{ template "mariadb.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
@@ -29,4 +29,4 @@ spec:
targetPort: metrics
{{- end }}
selector:
app: {{ template "mariadb.fullname" . }}
app: {{ template "mariadb.name" . }}