* [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>
* [stable/redis] Added sysctl init container
Made it possible to change host kernel settings with a custom
init container.
Fixes https://github.com/helm/charts/issues/10666
Signed-off-by: Denis Vilar <denisvilar@gmail.com>
* [stable/redis] Fixes according to review comments
* single sysctlImage config values for both master and slave
* use `bitnami/minideb` image
* added CI values
Signed-off-by: Denis Vilar <denisvilar@gmail.com>
* changed sysctl container command in CI production values
Signed-off-by: Denis Vilar <denisvilar@gmail.com>
* [stable/redis] Fixed indentation issue
Signed-off-by: Denis Vilar <denisvilar@gmail.com>
* [stable/redis] Allow mounting secrets as a file
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
* Adapt metrics deployment
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
* Fix typo
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
* Fix issue with volumes
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
* Bump chart
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
* fix(stable/redis): use extraFlags values
Signed-off-by: Jacob LeGrone <git@jacob.work>
* chore(stable/redis): keep ci values in sync with defaults
Signed-off-by: Jacob LeGrone <git@jacob.work>
* refactor(stable/redis): support redis docker library image
BREAKING CHANGES:
- `master.args` and `slave.args` are removed. Use `master.command` or
`slave.command` instead in order to override the image entrypoint,
or `master.extraFlags` to pass additional flags to `redis-server`.
- `disableCommands` is now interpreted as an array of strings instead
of a string of comma separated values.
- `master.persistence.path` now defaults to `/data`.
Signed-off-by: Jacob LeGrone <git@jacob.work>
* test(stable/redis): add ci values for base images & configurations
Signed-off-by: Jacob LeGrone <git@jacob.work>
* [stable/redis] allowing redis-exporter to talk to redis when NetworkPolicy is enabled
Signed-off-by: Stan Vitkovskiy <stas.vitkovsky@gmail.com>
* [stable/redis] extending NetworkPolicy so that redis-explorer can talk to redis endpoints
Signed-off-by: Stan Vitkovskiy <stas.vitkovsky@gmail.com>
The master Service name is derived from the "redis.fullname" template, which
depends on `{full,}nameOverride`. Prior to this change, if the template
evaluates to anything other than `redis-master`, e.g. if `fullnameOverride` is
set to anything but `redis`, the StatefulSet will be misconfigured.
This change replaces the hardcoded `redis-master` with the appropriate,
override-respecting value, which is the same as `metadata.name` in the master
service template.
Signed-off-by: Eric Bailey <e.bailey@sportradar.com>
* allow specification of update strategy on slaves
allow specification of update strategy on slaves, you should be able to specify stuff like maxUnavailable on slave updates. Otherwise, all your slaves may restart while the master is terminating/initializing. If this happens your slaves will be down just as long as the master
Signed-off-by: Alec Troemel <alec@mirusresearch.com>
* version bump
Signed-off-by: Alec Troemel <alec@mirusresearch.com>
* update docs
Signed-off-by: Alec Troemel <alec@mirusresearch.com>
* remove trailing spaces
Signed-off-by: Alec Troemel <alec@mirusresearch.com>
* remove extra paren
Signed-off-by: Alec Troemel <alec@mirusresearch.com>
* [stable/redis] Set metrics annotations by default
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
* Remove empty annotation
Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
* [stable/redis] Add global registry option
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
* Fix trailing space
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
* [stable/redis] NetworkPolicy podSelector should also match "release"
Currently, the `NetworkPolicy` created for the "redis" charts, only selects via the `app` label.
However, this does not only match Redis pods created by the respective release, but matches
Redis pods of _all_ releases of that Chart (which is -- I'm assuming -- not the intended behaviour).
Signed-off-by: Martin Helmich <m.helmich@mittwald.de>
* Bump chart version
Signed-off-by: Martin Helmich <m.helmich@mittwald.de>
* add init-container for set chown redis data dir
when securityContext and persistence claim template is enabled
Signed-off-by: Sergey Bondarev <s.bondarev@southbridge.ru>
* add to Readme and values-production.yaml
Signed-off-by: Sergey Bondarev <s.bondarev@southbridge.ru>
* change init-container image to busybox
bump chart version to 4.1
Signed-off-by: Sergey Bondarev <s.bondarev@southbridge.ru>
* also change init conatiner image in values-production.yml
Signed-off-by: Sergey Bondarev <s.bondarev@southbridge.ru>
* fix version
Signed-off-by: Sergey Bondarev <s.bondarev@southbridge.ru>
* Add secret checksum to metrics deployment
Signed-off-by: Jacob LeGrone <git@jacob.work>
* Fail health probes if auth is invalid
Signed-off-by: Jacob LeGrone <git@jacob.work>
* Configure master service port number
Signed-off-by: Jacob LeGrone <git@jacob.work>
* Increment chart version
Signed-off-by: Jacob LeGrone <git@jacob.work>
* Rename secrets.yaml to secret.yaml
Signed-off-by: Jacob LeGrone <git@jacob.work>
* Perform rolling update when configuration changes
Signed-off-by: Jacob LeGrone <git@jacob.work>
* Interpret redis.conf contents as string
Signed-off-by: Jacob LeGrone <git@jacob.work>
* Bump chart version
Signed-off-by: Jacob LeGrone <git@jacob.work>