Commit Graph
50 Commits
Author SHA1 Message Date
Cédric de Saint Martin 68ec4ff1a2 [stable/postgresql] Add terminationGracePeriodSeconds parameter. (#8165)
30 seconds by default might not be enough in some cases.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-10-08 13:00:58 -07:00
Igor Zibarev b5dd29867c [stable/postgresql] Fix metrics volume arguments (#7987)
"-extend.query-path" is invalid argument to postgres_exporter since
0.4.x version due to cli library update (ref:
https://github.com/wrouesnel/postgres_exporter/issues/147)

Currently, as a result of invalid argument, metrics container fails
to start.

This commit fixes the issue by replacing broken command line argument
with the corresponding environment variable, as they are more consistent.

Signed-off-by: Igor Zibarev <zibarev.i@gmail.com>
2018-10-06 13:02:51 -07:00
Igor Zibarev 46955b7e19 [stable/postgresql] Fix custom metrics volume (#7294)
Currently, custom metrics for "metrics" image of postgresql pod are
broken. This is because the volume is specified incorrectly. Thus, the
deployment ends up creating `emptyDir: {}` volume instead of `configMap`
one.

This commit fixes it.

Signed-off-by: Igor Zibarev <zibarev.i@gmail.com>
2018-09-24 12:44:03 -07:00
Maxime Guyot 71bc3633cd Add liveness and readiness probes to postgre_exporter (#7502)
Signed-off-by: Maxime Guyot <Miouge1@users.noreply.github.com>
2018-09-04 12:42:23 -07:00
Cédric de Saint Martin 7b06d36c71 [postgresql] Allow to keep PVC after 'helm delete'. Off by default. (#7283)
See https://github.com/helm/helm/blob/master/docs/charts_tips_and_tricks.md#tell-tiller-not-to-delete-a-resource

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-09-03 00:26:11 -07:00
Cédric de Saint Martin 903abc4189 [postgresql] Add pg_hba.conf option. (#6325)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2018-09-02 05:36:19 -07:00
Cédric de Saint Martin 614cc591a5 [postgresql] Set update strategy to Recreate. (#6343)
* [postgresql] Set update strategy to Recreate.

We NEVER want two different postgres instances to be up at the same time using the same database files, or corruption can occur.
At the cost of having a few seconds of downtime at upgrade time.

* Update Chart.yaml
2018-07-01 12:43:18 -07:00
Alexander Babai cf7a5644c6 [stable/postgresql]: add pods replace strategy support (#6218)
* [stable/postgresql]: add pods replace strategy support

* [stable/postgresql] bump version
2018-06-28 10:49:31 -07:00
Cornelius Keller 12de98d102 fix postgres chart (#6179) 2018-06-18 09:46:32 -07:00
Frederic Hemberger f269ff5f62 Remove duplicate key 'template' (#6055) 2018-06-17 09:07:47 -07:00
Adam Charnock 14520bba51 Adding values for liveness & readiness probe thresholds (#2957)
* Adding values for liveness & readiness probe thresholds

* Postgresql: Upping chart version

* Removing use of default as it is redundant

* Incrementing chart version as it seems someone beat me to it

* Update Chart.yaml
2018-06-17 05:21:31 -07:00
Jared Allard ba70a64af4 [stable/postgresql]: support prometheus operator (#4996)
* feat(postgres/svc): support prometheus operator

adds a metrics endpoint for prometheus operator servicemonitors

* chore: target inner containerPort

* chore: update chart version 0.9.6
2018-05-25 05:20:31 -07:00
Matt McNaughton 06c9ca585d [stable/postgresql] Add pod/deployment annotations (#5672)
Add the ability to specify pod/deployment annotations through
`values.yml`.

I tested this works without any custom annotations, and also tested
specifying custom annotations and verifying they are included in the
existing pod/deployment.
2018-05-24 12:37:41 -07:00
Ciaran Liedeman 93ccc23505 [stable/postgresql] Add Existing secret (#5413)
* Move custom metrics to config map

* Add existing secret option

* created secretName helper
2018-05-10 07:28:54 -07:00
Michael Laccetti 0e953d4484 [stable/postgresql] PostgreSQL metrics need the right username (#5407)
* PostgreSQL metrics need the right username

If we use `POSTGERS_USER` = `sonar`, metrics go boom.

* Bump version

* Bumping PostgreSQL version

* Bumping PostgreSQL version

* PostgreSQL metrics need the right username

If we use `POSTGERS_USER` = `sonar`, metrics go boom.

* Bumping PostgreSQL version
2018-05-10 06:46:53 -07:00
Alexander Babai 9e1cce036a [stable/postgresql] Standardize labels (#5110)
* [stable/postgresql] standardize labels

* use "postgresql.name" as app label instead of "postgresql.fullname"
* match pods by two labels, release and app

* [stable/postgresql] bump version to 0.9.6

* [stable/postgresql] update notes

* [stable/postgresql] bump version to 0.11.0
2018-04-26 12:49:29 -07:00
Corey O'Brien ea9eba4eaf [stable/postgresql] Add option to inject password via file (#5013)
* [stable/postgresql] Add option to inject password via file

* Bump minor version and remove extraneous and
2018-04-18 12:45:00 -07:00
Matt Farina 1960aeac0d Fix for version comparison from strings to semver (#4603)
* Fix for version comparison from strings to semver

See #3002 for more detail

* Include pre-releases in the semver ranges

This is important when testing against alpha and beta builds of
Kubernetes along with environments that use pre-releases to denote
things other than pre-releases (e.g., gke denotes the environment
with a pre-releases)
2018-04-03 09:54:35 -07:00
Federico Nusymowicz f2938a46e3 Allows alternate scheduler for postgresql (#3802) 2018-03-02 10:29:51 -08:00
jonathan.striebel ac3aa9fe6f postgresql: added postgresConfig value to specify runtime config parameters (#3780) 2018-02-28 13:09:45 -08:00
Kiall Mac Innes f8c1fbab05 [stable/postgresql] Add fullnameOverride support (#3708)
Add support for a fullnameOverride paramater to the PostgreSQL chart, matching
the pattern used by several other charts, as well as by the `helm create`
template chart.
2018-02-22 20:01:43 -08:00
Ricardo M. Augusto ed2953dbfc Increased probe timeout (#3497)
* Increased probe timeout

When database is stoped brutally database can start with "FATAL: the database system is starting up".
Depending on the storage it may take more than 60 seconds to autofix and the POD will restart indefinitely.

* Increased version

* Update Chart.yaml
2018-02-08 12:40:42 -08:00
Charles Vallance 79feb6ca8f [stable/postgresql] Added ability to set the NodePort for the postgresql chart. (#3349)
* Added ability to set the NodePort for the postgresql chart.

* Update Chart.yaml
2018-01-29 12:23:34 -08:00
Mickaël Canévet 9ff91203f6 [stable/postgresql] Add persistence.mountPath parameter (#3401)
* Add persistence.mountPath value

This allows to mount a volume in /var/lib/postgresql/data instead of
/var/lib/postgresql/data/pgdata. This is mandatory if the user starting
the postgres image is not the owner of /var/lib/postgresql/data/pgdata
but has only write access to it.

With this patch, the entrypoint will create /var/lib/postgresql/data
with the user that launched the container as owner and initdb will be
happy.

* Add documentation

* bump chart version
2018-01-24 01:17:31 -08:00
Johannes Choo 0bb24886cf [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.
2018-01-15 02:12:24 -08:00
Robin Kearney 54cc48a2fa Trivial fix to two missing namespace options (#3250)
* Trivial fix to two missing namespace options

* forgot to bump the version

* Missing space
2018-01-14 07:50:22 -08:00
Casey Kuhlman 42d157b62d [stable/postgresql] add annotations to pvc (#2858) 2017-12-15 16:57:15 +01:00
Alexander Babai 5ba80d9b68 [stable/postgresql] Add image pull secrets to deployment template (#2831)
* [stable/postgresql] Add image pull secrets to deployment template

* update deployment template
* add new parameter to README

* [stable/postgresql] bump chart version

update version to 0.8.5

* [stable/postgresql] add an example of imagePullSecrets to values.yaml
2017-12-09 13:23:46 +01:00
kavehmzta 752cfe95bb Postgresql: Adding affinity section to deployment (#2585)
* adding affinity setting to postgresql deployment

* bumpding postgresql chart version

* postgresql: fixing a yamllint complain

*   [stable/postgresql] adding affinity to values and readme
2017-11-17 16:56:29 +01:00
Guang Ya Liu 169d8e86b0 [stable/postgresql] Use storageClassName for postgresql. (#2005) 2017-09-10 11:28:00 -05:00
Mike Splain 10a3ab3be3 Add tolerations and node selector to postgresql (#1850) 2017-09-04 14:31:51 -05:00
kevinschumacher 1cd194bef9 [stable/postgresql] namespace template helpers with chart name (#1777) 2017-08-20 12:05:20 +05:30
Dan (Turk) 4d3fe58db0 Add NetworkPolicy to postgresql (#1593) 2017-08-10 11:08:56 -07:00
Fabian Ruff b90ad657e1 postgresql: Add option to create custom metrics (#791)
* postgresql: Add option to create custom metrics

* adhere prometheus naming conventions in the example

* postresql: Bump version to 0.7.1
2017-05-31 22:26:52 -07:00
Shane Hender b05303aa0f Support ClusterIP and NodePort service configuration when starting Postgres (#1184) 2017-05-31 20:52:23 +02:00
Barrett Harber 113b449efb Add POSTGRES_INITDB_ARGS (#1127)
- Add POSTGRES_INITDB_ARGS environment variable to deployment
- Update README and values to reflect this addition
2017-05-22 20:19:47 +02:00
Taras Glek 954eb72efd [stable/postgresql] Add external ip and port variables (#855)
* Add external ip and port variables

* bump chart version
2017-05-18 17:20:12 +01:00
Sameer Naik f6c53e6717 postgres: lower initialDelay and timeout for readiness probe (#318)
* [stable/postgresql] lower initialDelaySeconds of readiness probe

updated health probes to test postgres connection with POD_IP

* postgresql: adjust probe timeouts
2017-03-15 11:36:45 +00:00
Philip Champon 3d2733d2c1 [stable/postgresql] add persistence.existingClaim (#616)
* add persistence.existingClaim to postgresql

* update docs

* make template inline

* nope, that was not right

* up version

* clean up templating

* bump minor version
2017-03-15 11:06:46 +00:00
Ravi Mehra 9267d7c8ef [stable/postgresql] Fix volume's hidden directories from crashing initdb (#416)
* Fixes #415
* Use volumeMount subPath feature to accomplish same goal.  Removed obseleted init-container to remove lost-found directory.
* Bumped version to 1.0.0.  Made persistence.subPath configurable.  Added a note in README for users wanting to upgrade.
* Updated persistence readme wording
2017-02-13 15:47:17 -06:00
kabakaev 519c188d5a exporter fails if localhost cannot be resolved (#475)
* exporter fails if localhost cannot be resolved

prometheus metrics postgresql exporter fails silently if "localhost" cannot be resolved

* Patch version bump to v0.3.3
2017-02-07 14:11:14 -08:00
Adnan Abdulhussein 89f291797e [stable/postgresql] revision 0.3.2 (#521)
Changes:
- update truncation to recommended practices
- fix NOTES.txt for 1.5.x
- fix newline in pvc
2017-01-27 16:31:15 -08:00
Amanda Cameron a3d2da1f29 [stable/postgresql] Update to the recommended pvc patterns. (#461)
* Convert chart postgresql to use the recommended pvc patterns

* document storage class fallback

* bump chart version
2017-01-27 13:42:42 -08:00
Fabian Ruff 0374372bae postgresql: optional prometheus metrics exporter (#260)
* postgresql: optional prometheus metrics exporter

* split metrics.image into image and imageTag

* bump postgresql chart to 0.3.0

* Adding myself as maintainer for the postgresql chart
2016-12-21 11:31:05 -08:00
Michelle Noorali c759607a1e postgres: add ImagePullPolicy on init containers (#316) 2016-12-19 15:00:40 -08:00
Sameer Naik 58b7308361 apply standard metadata labels to PVC's 2016-12-06 08:57:38 +05:30
Fabian Ruff 692772796f Allow custom image in postgresql chart (#272) 2016-12-05 12:48:44 -08:00
Greg Taylor a7dbd55655 Separate postgres resource requests/limits.
Also bring them in line with our toYaml resources pattern that a growing
number of charts are using.
2016-11-05 01:06:30 -07:00
Greg Taylor 30d8aa2c4a Parameterize postgres chart's imagePullPolicy.
Also adjust the default to be IfNotPresent (Kubernetes default)
instead of Always.
2016-11-04 01:35:07 -07:00
Michael van Tricht 4a6fc693f7 Add PostgreSQL chart. (#147)
* Add PostgreSQL chart.

* Fix health probes, change NOTES.txt and README.md.

* Add init container to clean up the lost+found dir.
2016-10-31 09:29:22 -07:00