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