From 0bb24886cf289b77904148ec31453ae5c427ffbf Mon Sep 17 00:00:00 2001 From: Johannes Choo Date: Mon, 15 Jan 2018 18:12:24 +0800 Subject: [PATCH] [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. --- stable/postgresql/Chart.yaml | 2 +- stable/postgresql/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index 59fcc8e8dc..555db182f9 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -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 diff --git a/stable/postgresql/templates/NOTES.txt b/stable/postgresql/templates/NOTES.txt index cdc4d633b9..dc49232e78 100644 --- a/stable/postgresql/templates/NOTES.txt +++ b/stable/postgresql/templates/NOTES.txt @@ -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 }} \