* [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>
* [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>
* [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>
* [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>
* 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>
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>
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>
* 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>
* 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>
* [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>
* [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>
* [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>
* [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>
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>
* [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>
* 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>
* [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>
* [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>