[bitnami/postgresql] Fix error when running init-container (#18447)

Error: failed to create containerd task: OCI runtime create failed: container_linux.go:337: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown
Signed-off-by: Mikhail Grachev <work@mgrachev.com>
This commit is contained in:
Grachev Mikhail
2019-11-01 01:23:24 -07:00
committed by Kubernetes Prow Robot
parent 9731847c71
commit 8a5a143bad
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: postgresql
version: 6.5.4
version: 6.5.5
appVersion: 11.5.0
description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
@@ -75,7 +75,7 @@ spec:
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
command:
- sh
- /bin/sh
- -c
- |
mkdir -p {{ .Values.persistence.mountPath }}/data
@@ -148,7 +148,7 @@ spec:
livenessProbe:
exec:
command:
- sh
- /bin/sh
- -c
{{- if (include "postgresql.database" .) }}
- exec pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }}
@@ -165,7 +165,7 @@ spec:
readinessProbe:
exec:
command:
- sh
- /bin/sh
- -c
- -e
{{- include "postgresql.readinessProbeCommand" . | nindent 16 }}
+3 -3
View File
@@ -79,7 +79,7 @@ spec:
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
command:
- sh
- /bin/sh
- -c
- |
mkdir -p {{ .Values.persistence.mountPath }}/data
@@ -173,7 +173,7 @@ spec:
livenessProbe:
exec:
command:
- sh
- /bin/sh
- -c
{{- if (include "postgresql.database" .) }}
- exec pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }}
@@ -190,7 +190,7 @@ spec:
readinessProbe:
exec:
command:
- sh
- /bin/sh
- -c
- -e
{{- include "postgresql.readinessProbeCommand" . | nindent 16 }}