Commit Graph
178 Commits
Author SHA1 Message Date
Javier J. Salmerón-García a9808e049d [stable/redis] Move metrics from deployment to sidecar (#15713)
* [stable/redis] Move metrics from deployment to sidecar

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Use bitnami/redis-exporter container

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Change readme

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Update tags

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Restore metrics service

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Fix typo

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Restore metrics service section in README

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Update ci test metrics tag

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
2019-07-24 09:46:17 -07:00
Carlos Rodríguez Hernández 1dfd2a6efc [stable/redis] Implement again "Standardize 'fullname' and 'name' macros" (#15650)
* [stable/redis] Implement again "Standardize 'fullname' and 'name' macros"

This reverts commit 9cb0bdf566.
Implement #15424 bumping a major version after #15604
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Bump patch version

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-07-18 07:34:23 -07:00
Carlos Rodríguez Hernández 9cb0bdf566 Revert "[stable/redis] Standardize 'fullname' and 'name' macros (#15424)" (#15604)
This reverts commit 2205660f76.

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-07-17 08:25:11 -07:00
Josh Bryans 347216ed8b [stable/redis] Allow templated secret name (#15542)
* [Redis] Allow templated secret name

Signed-off-by: Josh Bryans <joshhsoj1902@gmail.com>

* Update Chart.yaml

Signed-off-by: Josh Bryans <joshhsoj1902@gmail.com>
2019-07-16 02:23:25 -07:00
Cédric de Saint Martin d7999979df [stable/redis] Fix (again) extraFlags. (#11579)
Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
2019-07-14 05:33:03 -07:00
Juan Ariza Toledano 2205660f76 [stable/redis] Standardize 'fullname' and 'name' macros (#15424)
Signed-off-by: juan131 <juan@bitnami.com>
2019-07-11 09:03:32 -07:00
Sameer Naik bbacfbdace [stable/redis] allow user to supply additional configurations for master/slave and sentinel nodes (#15343)
ref #14515

Signed-off-by: Sameer Naik <sameer@bitnami.com>
2019-07-10 01:26:24 -07:00
Miguel Ángel Cabrera Miñagorri 1052ccf663 [stable/redis] Add support to execute Redis as root (#15276)
* [stable/redis] Add support to execute Redis as root

Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>

* Change Redis hardcoded data directory to the value at the Values.yaml when changing permissions deploying as root

Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
2019-07-08 03:22:34 -07:00
Naseem 60c77b570b [stable/redis] exporter to 1.0.3 (#15302)
* exporter to 1.0.3

Signed-off-by: Naseem <naseemkullah@gmail.com>

* Add some notes

Signed-off-by: Naseem <naseemkullah@gmail.com>
2019-07-07 23:24:34 -07:00
Sameer Naik 1adb31cb7e [stable/redis] fix master joining cluster as slave (#15258)
Fixes #15115

Signed-off-by: Sameer Naik <sameer@bitnami.com>
2019-07-05 03:52:36 -07:00
Juan Ariza Toledano a8332d6cdf [stable/redis] Collect metrics from sentinels when enabled (#15156)
* [stable/redis] Collect metrics from sentinels when enabled

Signed-off-by: juan131 <juan@bitnami.com>

* Rebase branch from master

Signed-off-by: juan131 <juan@bitnami.com>
2019-07-03 06:26:31 -07:00
Beni Ben zikry 444f959fd6 [stable/redis] Add --no-auth-warning to health checks (#15100)
* Added --no-auth-warning to redis-cli calls in health-configmap

Signed-off-by: Beni Ben Zikry <bbenzikry@gmail.com>

* update tag for redis-lib-values

Signed-off-by: Beni Ben Zikry <bbenzikry@gmail.com>

* bump chart version

Signed-off-by: Beni Ben Zikry <bbenzikry@gmail.com>

* added no-auth-warning flag on top of new probe changes

Signed-off-by: Beni Ben Zikry <bbenzikry@gmail.com>
2019-07-03 02:36:43 -07:00
Bastian Hofmann d6cdc8f09f [stable/redis] Improve liveness probe so that redis is not restarted while it is still loading its dataset into memory (#15093)
On larger databases this can take more than just the initial probe delay. During this time redis will not answer the ping command with pong, but with loading. Of course the container should not be marked as ready, but it also should not restart which results in redis never starting successfully.

Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
2019-06-28 10:31:38 -07:00
Yitaek Hwang bd46cc489e [stable/redis] Allow slave pods to connect to master when networkPolicy is enabled (#15082)
* Adding network policy label for slave pods

Signed-off-by: YITAEK HWANG <yitaek@gmail.com>

* [stable/redis] fixing ordering of if statements in networkpolicy

Signed-off-by: YITAEK HWANG <yitaek@gmail.com>
2019-06-27 21:29:19 -07:00
Sameer Naik daaff5ef55 [stable/redis] remove manual discovery of sentinels (#15005)
redis-sentinel auto-discovers all the slaves running in the cluster, we only need to specify the masters to monitor.

Fixes #14766 where in the cluster goes into a error condition when the master node and one or more slave nodes are re-created at the same time.

Signed-off-by: Sameer Naik <sameersbn@vmware.com>
2019-06-24 00:19:55 -07:00
Miguel Ángel Cabrera Miñagorri e085a2d272 Fix Redis configmap error with clusterDomain (#14955)
Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
2019-06-21 02:18:35 -07:00
Miguel Ángel Cabrera Miñagorri f8a6ecb0f1 Add masterAuth property to redis master (#14804)
Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
2019-06-17 09:46:13 -07:00
Joseda Rios ef8497261d [stable/redis] Bump redis and redis-sentinel tags (#14817)
* Bump redis and redis-sentinel tags

Signed-off-by: Joseda Rios <josriolop@gmail.com>

* Bump ci tags

Signed-off-by: Joseda Rios <josriolop@gmail.com>
2019-06-14 07:42:22 -07:00
Carlos Rodríguez Hernández bf1174b2e9 Unify and document production values (#14666)
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-06-10 19:42:16 -07:00
Bitnami Bot a406b40a0e stable/redis: update to 5.0.5 (#14639)
Signed-off-by: Bitnami Containers <containers@bitnami.com>
2019-06-10 04:59:06 -07:00
Javier J. Salmerón-García 487dc536cd [stable/redis] (#14461)
Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
2019-06-04 11:04:18 -07:00
Carlos Rodríguez Hernández 0b567ce0b7 [stable/redis] Change regex looking for rolling tags (#14262)
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-05-29 08:23:19 -07:00
Carlos Rodríguez Hernández d28f244ff6 [stable/redis] Use immutable tags (#14195)
* Bump chart version

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* [stable/redis] Use immutable tags

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-05-28 11:49:00 -07:00
kngin 1da2075171 bug fix : Template error when Slave persistence is set to false #14115 (#14151)
Signed-off-by: kngin <someonegg@163.com>
2019-05-27 05:33:51 -07:00
Serhiy Kalinets 96d4f65e11 [stable/redis] fixing slave configuration when password is disabled (#14120)
Signed-off-by: Serhiy Kalinets <kalinets@gmail.com>
2019-05-27 00:59:53 -07:00
Bitnami Bot 7ef678b8b6 stable/redis: update to 5.0.5 (#13950)
Signed-off-by: Bitnami Containers <containers@bitnami.com>
2019-05-18 14:13:11 -07:00
Naseem b1543cdb4e [stable/redis] Updating redis img to 5.0.4 (#13477)
* Updating redis img to 5.0.4

Signed-off-by: Naseem <naseemkullah@gmail.com>

* Fix version

Signed-off-by: Naseem <naseemkullah@gmail.com>
2019-05-18 12:41:13 -07:00
Andrés Bono d2c1604578 [stable/redis] Fix parameters table (#13945)
Signed-off-by: Andrés Bono <andresbonojimenez@gmail.com>
2019-05-17 03:08:06 -07:00
Juan Ariza Toledano 851011ac4c [stable/redis] Enable AOF by default (#13541)
Signed-off-by: juan131 <juan@bitnami.com>
2019-05-06 06:55:41 -07:00
Naseem 78586ea0aa Bump chart version (#13479)
Signed-off-by: Naseem <naseemkullah@gmail.com>
2019-05-06 05:59:36 -07:00
Matt Calvert 8353ed63a4 [stable/redis] Enable Kubernetes Cluster DNS domain to be overridden (#13430)
* New `kubernetesDNSDomain` variable added to permit Cluster DNS domain to be overridden

Signed-off-by: Matt Calvert <matt.calvert@ukfast.co.uk>

* `kubernetesDNSDomain` variable renamed to `clusterDomain`

Signed-off-by: Matt Calvert <matt.calvert@ukfast.co.uk>

* Version bumped to 7.0.2 as 7.0.1 release exists

Signed-off-by: Matt Calvert <matt.calvert@ukfast.co.uk>
2019-05-06 04:57:38 -07:00
Naseem 8f972653fc Fix broken netpol (#13387)
Signed-off-by: Naseem <naseemkullah@gmail.com>
2019-05-01 01:50:56 -07:00
Javier J. Salmerón-García 34ee421566 Major stable/redis version: remove value inheritance and add optional sentinel support (#13112)
* [stable/redis] Remove value inherintance from master to slave

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Adapt values-production

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Restore persistence path

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Restore /data as path

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Add liveness and readiness enable

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Add port

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Update readme

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Enable metrics in values-production.yaml

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* [stable/redis] Add persistence to read-only slaves

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* [stable/redis] Add sentinel support

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Apply requested changes

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Apply @tompizmor changes

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Apply changes in values-production.yaml and add tests

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Adapt text

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Last set of changes by @juan131

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Indentation

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Fix merge issue

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Fix trailing whitespace

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Fix trailing whitespace

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Fix trailing whitespace

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Add upgrade notes

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Merge upgrade sections

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Fix merge issue

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Change redis lib test file

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Update test for redisgraph

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2019-04-23 02:06:08 -07:00
Eduardo Baitello 788f52cab1 Add missing imagePullPolicy for init-sysctl (#13018)
The sysctlImage.pullPolicy value is documented, but is to used
in the templates
Signed-off-by: eduardobaitello <eduardobaitello@gmail.com>
2019-04-15 01:20:00 -07:00
Viacheslav Kropotko 7e4eec721f Redis Helm Chart. Add resources to init container in the slave-deployment template (#12739)
* Add resources to init container in the slave-deployment template

Signed-off-by: vkropotko <vkropotko@riskfocus.com>

* Redis Helm Chart. Update README.md and comments

Signed-off-by: vkropotko <vkropotko@riskfocus.com>
2019-04-04 02:46:56 -07:00
Naseem 6f69425ab0 Update exporter img (#12444)
Signed-off-by: Naseem <naseemkullah@gmail.com>
2019-03-22 01:40:18 -07:00
Bitnami Bot bcd8b3ef96 stable/redis: update to 4.0.14 (#12356)
Signed-off-by: Bitnami Containers <containers@bitnami.com>
2019-03-19 01:30:24 -07:00
Juan Ariza Toledano 09d0b3eb12 [stable/redis] Set rollingUpdate to null when updateStrategy is Recreate (#12329)
* [stable/redis] Set rollingUpdate to null when updateStrategy is Recreate

Signed-off-by: juan131 <juan@bitnami.com>

* Fix version in 'Chart.yaml'

Signed-off-by: juan131 <juan@bitnami.com>

* Fix 'redis-master-statefulset.yaml' template

Signed-off-by: juan131 <juan@bitnami.com>
2019-03-18 03:37:17 -07:00
Carlos Rodríguez Hernández 09d960d830 [stable/redis] Use global registry in secondary and/or metrics images (#12238)
* [stable/redis] Use global registry in secondary and/or metrics images

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Fix typo

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-03-15 02:58:57 -07:00
Guillermo 2144404a45 Fixed invalid empty annotations in redis chart template (#12187)
Signed-off-by: Guillermo Guirao Aguilar <contact@guillermoguiraoaguilar.com>
2019-03-14 03:38:25 -07:00
Carlos Rodríguez Hernández 0a98728c5d [stable/redis] Add global options to values-production and pullSecrets to sysctlImage and volumePermissions (#12129)
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-03-12 07:59:32 -07:00
Carlos Rodríguez Hernández 412e33c308 [stable/redis] Add global 'imagePullSecrets' to overwrite any other existing one (#12068)
* [stable/redis] Add global 'imagePullSecrets' to overwrite any other existing one

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Fix typo and add var to the README

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>

* Fix typo in helpers

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-03-12 03:54:51 -07:00
Carlos Rodríguez Hernández 5b3f02972b [stable/redis] Add apiVersion in Chart.yaml and add test info to README.md (#11790)
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
2019-02-27 08:54:45 -08:00
Jonas Grau 321bb3202d [stable/redis] Fix service name when cluster is disabled (#11553)
If cluster is not enabled the name of the master service still contains `-master`. This changes updates the helper so that is apparent when looking at the helm status.

Signed-off-by: Jonas Grau <jonas.grau@gmail.com>
2019-02-22 07:12:15 -08:00
Bitnami Bot 57d3030941 stable/redis: update to 4.0.13 (#11584)
Signed-off-by: Bitnami Containers <containers@bitnami.com>
2019-02-22 01:53:16 -08:00
Alexander Awitin 4daf2d02ed [stable/redis] Fix "iptables: Permission Denined" error when installing on Istio-enabled cluster. (#11232)
* [stable/redis] Fix "Can't initialize iptables table 'nat': Permission denied (you must be root)" error when installed on an Istio-enabled cluster.

Only define the `securityContext` on the main container instead of defining it on the top level `spec` which results into injected containers by Istio inheriting this definition (i.e. istio-init).

Related topic: https://github.com/istio/old_issues_repo/issues/316

Signed-off-by: Alexander Awitin <alexanderawitin@gmail.com>

* [stable/postgresql] Fix "Can't initialize iptables table 'nat': Permission denied (you must be root)" error when installed on an Istio-enabled cluster. (#11226)

Only define the `securityContext` on the main container instead of defining it on the top level `spec` which results into injected containers by Istio inheriting this definition (i.e. istio-init).

Related topic: https://github.com/istio/old_issues_repo/issues/316

Signed-off-by: Alexander Awitin <alexanderawitin@gmail.com>

* Bring `securityContext.fsGroup` back to `spec.template.spec` as where it should be.
Ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#podsecuritycontext-v1-core

Signed-off-by: Alexander Awitin <alexanderawitin@gmail.com>

* refactor: Split `runAsUser` and `fsGroup` configuration in container and pod sections respectively.

Signed-off-by: Alexander Awitin <alexanderawitin@gmail.com>

* Bump chart version.

Signed-off-by: Alexander Awitin <alexanderawitin@gmail.com>

* refactor: Remove `securityContext.runAsNonRoot` from the main container.

Signed-off-by: Alexander Awitin <me@alexanderawitin.com>
2019-02-20 00:06:02 -08:00
stsui-ctech a143218529 Workaround k8s exec probe timeoutSeconds (#11355)
* Workaround k8s exec probe timeoutSeconds

We've found that redis-cli can hang and not return in some
circumstances (e.g. when the persistentVolume is not responding).

Kubernetes probes that run in Docker containers currently ignore
the timeoutSeconds specified in the probe. [0]

To workaround this, pass the timeoutSeconds as a parameter to the
scripts, and use the timeout tool to send a SIGKILL to redis-cli
if it's hasn't responded after the timeout expires.

[0] https://github.com/kubernetes/kubernetes/pull/58925

Signed-off-by: Severn Tsui <stsui@carnegietechnologies.com>

* Merge timeout line into same line as shell command

Do it for the helper, the same way it was done in the SS

Signed-off-by: Severn Tsui <stsui@carnegietechnologies.com>
2019-02-15 02:11:30 -08:00
Vyacheslav 7a46ccede9 Add resources field to redis init containers (#11243)
Signed-off-by: vkropotko <vjkropotko@gmail.com>
2019-02-07 16:14:27 -08:00
Javier J. Salmerón-García 55f2637ad7 [stable/redis] Make volumePermissions init container optional (#11029)
* [stable/redis] Make volumePermissions init container optional

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Bump chart to major version

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Update readme for upgrading

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2019-02-05 05:37:52 -08:00
Javier J. Salmerón-García 25d05a61f9 [stable/redis] Fix use password as file environment variable issue (#10826)
* [stable/redis] Fix use password as file environment variable issue

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Fix metrics deployment

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Fix readme

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Update exporter to new version

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Bump chart version

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Update test values

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2019-01-31 04:12:22 -08:00