[stable/postgres] command in notes to run postgres client pod should have --restart=Never flag set. (#3325)

* command to run postgres client should not use rs

Modify the printed command to connect to the postgresql server pod to use a `--restart=Never` so that the pod instantiated that hosts a `psql` client is not backed by a ReplicaSet.

* Increment patch version number.
This commit is contained in:
Johannes Choo
2018-01-15 02:12:24 -08:00
committed by k8s-ci-robot
parent 817a14e56b
commit 0bb24886cf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: postgresql
version: 0.8.6
version: 0.8.7
description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
- postgresql
+1 -1
View File
@@ -7,7 +7,7 @@ To get your user password run:
To connect to your database run the following command (using the env variable from above):
kubectl run --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }}-client --rm --tty -i --image postgres \
kubectl run --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }}-client --restart=Never --rm --tty -i --image postgres \
--env "PGPASSWORD=$PGPASSWORD" \{{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }}
--labels="{{ template "postgresql.fullname" . }}-client=true" \{{- end }}
--command -- psql -U {{ default "postgres" .Values.postgresUser }} \