mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
k8s-ci-robot
parent
8c57580a10
commit
1a381d1539
@@ -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:
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
Reference in New Issue
Block a user