Mariadb: allow probe params to be adjusted

This PS exposes the ability to adjust the readiness check
probe params.

Change-Id: Ic4730ef1d07f5cdf4b6fae5bb1331d788ea84e2e
Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
Pete Birley 2019-10-04 10:22:44 -05:00 committed by Pete Birley
parent 22ef25ab29
commit 6cc4369e1e
2 changed files with 17 additions and 7 deletions

View File

@ -14,6 +14,13 @@ See the License for the specific language governing permissions and
limitations under the License.
*/}}
{{- define "mariadbReadinessProbe" }}
exec:
command:
- /tmp/readiness.sh
{{- end }}
{{- if .Values.manifests.statefulset }}
{{- $envAll := . }}
@ -170,13 +177,7 @@ spec:
exec:
command:
- /tmp/stop.sh
readinessProbe:
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 3
exec:
command:
- /tmp/readiness.sh
{{ dict "envAll" . "component" "server" "container" "mariadb" "type" "readiness" "probeTemplate" (include "mariadbReadinessProbe" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 10 -}}
volumeMounts:
- name: pod-tmp
mountPath: /tmp

View File

@ -59,6 +59,15 @@ labels:
node_selector_value: enabled
pod:
probes:
server:
mariadb:
readiness:
enabled: true
params:
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 15
security_context:
server:
pod: