Merge remote-tracking branch 'bitnami/master'

This commit is contained in:
Hisham Ismail
2020-02-02 08:56:10 +00:00
35 changed files with 168 additions and 113 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: consul
version: 6.0.14
appVersion: 1.6.2
version: 6.0.15
appVersion: 1.6.3
description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
home: https://www.consul.io/
sources:
+2 -2
View File
@@ -14,7 +14,7 @@
image:
registry: docker.io
repository: bitnami/consul
tag: 1.6.2-debian-10-r0
tag: 1.6.3-debian-10-r0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -330,7 +330,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/consul-exporter
tag: 0.6.0-debian-10-r0
tag: 0.6.0-debian-10-r5
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+2 -2
View File
@@ -14,7 +14,7 @@
image:
registry: docker.io
repository: bitnami/consul
tag: 1.6.2-debian-10-r0
tag: 1.6.3-debian-10-r0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -330,7 +330,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/consul-exporter
tag: 0.6.0-debian-10-r0
tag: 0.6.0-debian-10-r5
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: elasticsearch
version: 10.3.6
version: 11.0.0
appVersion: 7.5.2
description: A highly scalable open-source full-text search and analytics engine
keywords:
+11
View File
@@ -477,6 +477,17 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru
## Notable changes
### 11.0.0
Elasticsearch master pods are now deployed in parallel in order to bootstrap de cluster and be discovered.
The field `podManagementPolicy` can't be updated in a StatefulSet, so you need to destroy it before you upgrade the chart to this version.
```console
$ kubectl delete statefulset elasticsearch-master
$ helm upgrade <DEPLOYMENT_NAME> bitnami/elasticsearch
```
### 10.0.0
In this version, Kibana was added as dependant chart. More info about how to enable and work with this bundled Kibana in the ["Enable bundled Kibana"](#enable-bundled-kibana) section.
@@ -14,6 +14,7 @@ spec:
matchLabels: {{- include "elasticsearch.matchLabels" . | nindent 6 }}
role: master
serviceName: {{ template "elasticsearch.master.fullname" . }}
podManagementPolicy: Parallel
replicas: {{ .Values.master.replicas }}
template:
metadata:
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: fluentd
version: 0.4.9
appVersion: 1.9.0
version: 0.4.10
appVersion: 1.9.1
description: Fluentd is an open source data collector for unified logging layer
keywords:
- fluentd
+1 -1
View File
@@ -13,7 +13,7 @@ global: {}
image:
registry: docker.io
repository: bitnami/fluentd
tag: 1.9.0-debian-10-r0
tag: 1.9.1-debian-10-r0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
+1 -1
View File
@@ -13,7 +13,7 @@ global: {}
image:
registry: docker.io
repository: bitnami/fluentd
tag: 1.9.0-debian-10-r0
tag: 1.9.1-debian-10-r0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: memcached
version: 4.2.2
appVersion: 1.5.21
version: 4.2.3
appVersion: 1.5.22
description: Chart for Memcached
keywords:
- memcached
+2 -2
View File
@@ -13,7 +13,7 @@
image:
registry: docker.io
repository: bitnami/memcached
tag: 1.5.21-debian-10-r0
tag: 1.5.22-debian-10-r0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -170,7 +170,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/memcached-exporter
tag: 0.6.0-debian-10-r0
tag: 0.6.0-debian-10-r7
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+2 -2
View File
@@ -13,7 +13,7 @@
image:
registry: docker.io
repository: bitnami/memcached
tag: 1.5.21-debian-10-r0
tag: 1.5.22-debian-10-r0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -170,7 +170,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/memcached-exporter
tag: 0.6.0-debian-10-r0
tag: 0.6.0-debian-10-r7
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: postgresql-ha
version: 1.4.0
version: 1.4.1
appVersion: 11.6.0
description: Chart for PostgreSQL with HA architecture (using Replication Manager (repmgr) and Pgpool).
keywords:
@@ -37,49 +37,6 @@ spec:
{{- $postgresqlHeadlessServiceName := printf "%s-headless" (include "postgresql-ha.postgresql" .) }}
{{- $releaseNamespace := .Release.Namespace }}
{{- $clusterDomain:= .Values.clusterDomain }}
initContainers:
- name: wait-for-backend-nodes
image: {{ include "postgresql-ha.volumePermissionsImage" . }}
imagePullPolicy: {{ .Values.volumePermissionsImage.pullPolicy | quote }}
env:
- name: PGPOOL_BACKEND_NODES
value: {{range $e, $i := until $postgresqlReplicaCount }}{{ $i }}:{{ $postgresqlFullname }}-{{ $i }}.{{ $postgresqlHeadlessServiceName }}.{{ $releaseNamespace }}.svc.{{ $clusterDomain }}:5432,{{ end }}
command:
- /bin/bash
- -c
- |
dns_lookup() {
local host="${1:?host is missing}"
getent ahosts "$host" | awk '/STREAM/ {print $1 }'
}
is_hostname_resolved() {
local -r host="${1:?missing value}"
if [[ -n "$(dns_lookup "$host")" ]]; then
true
else
false
fi
}
read -r -a nodes <<< "$(tr ',;' ' ' <<< "${PGPOOL_BACKEND_NODES}")"
declare -i node_counter=0
for node in "${nodes[@]}"; do
read -r -a fields <<< "$(tr ':' ' ' <<< "${node}")"
host="${fields[1]:?field host is needed}"
for ((i = 1 ; i <= 10 ; i+=1 )); do
is_hostname_resolved "$host" && node_counter+=1 && break
sleep 5
done
done
if [[ $node_counter -ne ${#nodes[@]} ]]; then
echo "Not enough active backend nodes!"
exit 1
fi
echo "Every backend node is active!"
exit 0
{{- if .Values.pgpool.securityContext.enabled }}
securityContext:
runAsUser: {{ .Values.pgpool.securityContext.runAsUser }}
{{- end }}
containers:
- name: pgpool
image: {{ include "postgresql-ha.pgpoolImage" . }}
@@ -168,18 +125,7 @@ spec:
livenessProbe:
exec:
command:
- bash
- -ec
- |
if nodes=$(PGPASSWORD=${PGPOOL_POSTGRES_PASSWORD} psql -U {{ (include "postgresql-ha.postgresqlUsername" .) | quote }} {{- if not (empty (include "postgresql-ha.postgresqlDatabase" .)) }} -d {{ (include "postgresql-ha.postgresqlDatabase" .) | quote }}{{- end }} -h 127.0.0.1 -tA -c "show pool_nodes;" | grep "up" | wc -l); then
if [[ $nodes -eq {{ $postgresqlReplicaCount }} ]]; then
true
else
false
fi
else
false
fi
- /healthcheck.sh
initialDelaySeconds: {{ .Values.pgpool.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.pgpool.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.pgpool.livenessProbe.timeoutSeconds }}
@@ -192,16 +138,7 @@ spec:
command:
- bash
- -ec
- |
if nodes=$(PGPASSWORD=${PGPOOL_POSTGRES_PASSWORD} psql -U {{ (include "postgresql-ha.postgresqlUsername" .) | quote }} {{- if not (empty (include "postgresql-ha.postgresqlDatabase" .)) }} -d {{ (include "postgresql-ha.postgresqlDatabase" .) | quote }}{{- end }} -h 127.0.0.1 -tA -c "show pool_nodes;" | wc -l); then
if [[ $nodes -eq {{ $postgresqlReplicaCount }} ]]; then
true
else
false
fi
else
false
fi
- PGPASSWORD=${PGPOOL_POSTGRES_PASSWORD} psql -U {{ (include "postgresql-ha.postgresqlUsername" .) | quote }} {{- if not (empty (include "postgresql-ha.postgresqlDatabase" .)) }} -d {{ (include "postgresql-ha.postgresqlDatabase" .) | quote }}{{- end }} -h 127.0.0.1 -tA -c "SELECT 1" >/dev/null
initialDelaySeconds: {{ .Values.pgpool.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.pgpool.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.pgpool.readinessProbe.timeoutSeconds }}
+1 -1
View File
@@ -51,7 +51,7 @@ postgresqlImage:
pgpoolImage:
registry: docker.io
repository: bitnami/pgpool
tag: 4.1.0-debian-10-r2
tag: 4.1.0-debian-10-r7
## Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
+1 -1
View File
@@ -51,7 +51,7 @@ postgresqlImage:
pgpoolImage:
registry: docker.io
repository: bitnami/pgpool
tag: 4.1.0-debian-10-r2
tag: 4.1.0-debian-10-r7
## Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: zookeeper
version: 5.3.4
version: 5.3.5
appVersion: 3.5.6
description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications.
keywords:
+2 -2
View File
@@ -14,7 +14,7 @@
image:
registry: docker.io
repository: bitnami/zookeeper
tag: 3.5.6-debian-10-r0
tag: 3.5.6-debian-10-r6
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -237,7 +237,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/zookeeper-exporter
tag: 0.1.3-debian-10-r0
tag: 0.1.3-debian-10-r5
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+2 -2
View File
@@ -14,7 +14,7 @@
image:
registry: docker.io
repository: bitnami/zookeeper
tag: 3.5.6-debian-10-r0
tag: 3.5.6-debian-10-r6
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -240,7 +240,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/zookeeper-exporter
tag: 0.1.3-debian-10-r0
tag: 0.1.3-debian-10-r5
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: dokuwiki
version: 6.0.5
version: 6.0.6
appVersion: 0.20180422.201901061035
description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating
documentation. It is targeted at developer teams, workgroups, and small companies.
+2 -2
View File
@@ -14,7 +14,7 @@
image:
registry: docker.io
repository: bitnami/dokuwiki
tag: 0.20180422.201901061035-debian-10-r0
tag: 0.20180422.201901061035-debian-10-r6
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -193,7 +193,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/apache-exporter
tag: 0.7.0-debian-10-r0
tag: 0.7.0-debian-10-r5
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: external-dns
version: 2.16.0
version: 2.16.1
appVersion: 0.5.18
description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable.
keywords:
+1 -1
View File
@@ -75,7 +75,7 @@ The following table lists the configurable parameters of the external-dns chart
| `aws.batchChangeSize` | When using the AWS provider, set the maximum number of changes that will be applied in each batch | `1000` |
| `aws.zoneTags` | When using the AWS provider, filter for zones with these tags | `[]` |
| `aws.preferCNAME` | When using the AWS provider, replaces Alias recors with CNAME (options: true, false) | `[]` |
| `aws.evaluateTargetHealth | When using the AWS provider, sets the evaluate target health flag (options: true, false) | `[true, false]` |
| `aws.evaluateTargetHealth` | When using the AWS provider, sets the evaluate target health flag (options: true, false) | `[true, false]` |
| `azure.secretName` | When using the Azure provider, set the secret containing the `azure.json` file | `""` |
| `azure.cloud` | When using the Azure provider, set the Azure Clound | `""` |
| `azure.resourceGroup` | When using the Azure provider, set the Azure Resource Group | `""` |
@@ -129,9 +129,9 @@ spec:
{{- if .Values.aws.preferCNAME }}
- --aws-prefer-cname
{{- end }}
{{- if .Values.aws.evaluateTargetHealth }}
- --aws-evaluate-target-health={{ . }}
{{- end }}
{{- if and (kindIs "bool" .Values.aws.evaluateTargetHealth) (not .Values.aws.evaluateTargetHealth) }}
- --no-aws-evaluate-target-health
{{- end }}
# Azure Arguments
{{- if or (eq .Values.provider "azure") (eq .Values.provider "azure-private-dns") }}
{{- if .Values.azure.resourceGroup }}
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: nats
version: 4.2.11
appVersion: 2.1.2
version: 4.2.12
appVersion: 2.1.4
description: An open-source, cloud-native messaging system
keywords:
- nats
+2 -2
View File
@@ -13,7 +13,7 @@
image:
registry: docker.io
repository: bitnami/nats
tag: 2.1.2-debian-10-r0
tag: 2.1.4-debian-10-r0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -302,7 +302,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/nats-exporter
tag: 0.6.0-debian-10-r0
tag: 0.6.0-debian-10-r5
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+2 -2
View File
@@ -13,7 +13,7 @@
image:
registry: docker.io
repository: bitnami/nats
tag: 2.1.2-debian-10-r0
tag: 2.1.4-debian-10-r0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -302,7 +302,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/nats-exporter
tag: 0.6.0-debian-10-r0
tag: 0.6.0-debian-10-r5
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: odoo
version: 12.0.6
version: 13.0.0
appVersion: 12.0.20191215
description: A suite of web based open source business apps.
home: https://www.odoo.com/
+3 -3
View File
@@ -1,6 +1,6 @@
dependencies:
- name: postgresql
repository: https://kubernetes-charts.storage.googleapis.com/
version: 7.7.3
digest: sha256:e7c3fc1c0606c69cfd4240a86f1ada88086f7b37b51d16a4ce56cf48314065e3
generated: 2019-12-15T07:35:34.562674804Z
version: 8.2.1
digest: sha256:ab0947bfeb757eaf0dc8fdf51a5a4aeb6f6ca33d55e3a5a91b00cfefd65288e2
generated: 2020-01-31T10:40:11.837607+01:00
+1 -1
View File
@@ -1,5 +1,5 @@
dependencies:
- name: postgresql
condition: postgresql.enabled
version: 7.x.x
version: 8.x.x
repository: https://kubernetes-charts.storage.googleapis.com/
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: redis
version: 10.3.5
version: 10.4.0
appVersion: 5.0.7
description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
keywords:
+7 -3
View File
@@ -78,8 +78,8 @@ The following table lists the configurable parameters of the Redis chart and the
| `clusterDomain` | Kubernetes DNS Domain name to use | `cluster.local` |
| `networkPolicy.enabled` | Enable NetworkPolicy | `false` |
| `networkPolicy.allowExternal` | Don't require client label for connections | `true` |
| `networkPolicy.ingressNSMatchLabels` | Allow connections from other namespaces | `{}` |
| `networkPolicy.ingressNSPodMatchLabels` | For other namespaces match by pod labels and namespace labels | `{}` |
| `networkPolicy.ingressNSMatchLabels` | Allow connections from other namespaces | `{}` |
| `networkPolicy.ingressNSPodMatchLabels` | For other namespaces match by pod labels and namespace labels | `{}` |
| `securityContext.enabled` | Enable security context (both redis master and slave pods) | `true` |
| `securityContext.fsGroup` | Group ID for the container (both redis master and slave pods) | `1001` |
| `securityContext.runAsUser` | User ID for the container (both redis master and slave pods) | `1001` |
@@ -107,6 +107,10 @@ The following table lists the configurable parameters of the Redis chart and the
| `metrics.service.labels` | Additional labels for the metrics service | {} |
| `metrics.service.loadBalancerIP` | loadBalancerIP if redis metrics service type is `LoadBalancer` | `nil` |
| `metrics.priorityClassName` | Metrics exporter pod priorityClassName | {} |
| `metrics.prometheusRule.enabled` | Set this to true to create prometheusRules for Prometheus operator | `false` |
| `metrics.prometheusRule.additionalLabels` | Additional labels that can be used so prometheusRules will be discovered by Prometheus | `{}` |
| `metrics.prometheusRule.namespace` | namespace where prometheusRules resource should be created | Same namespace as redis |
| `metrics.prometheusRule.rules` | [rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) to be created, check values for an example. | `[]` |
| `persistence.existingClaim` | Provide an existing PersistentVolumeClaim | `nil` |
| `master.persistence.enabled` | Use a PVC to persist data (master node) | `true` |
| `master.persistence.path` | Path to mount the volume at, to use other images | `/data` |
@@ -390,7 +394,7 @@ With NetworkPolicy enabled, only pods with the generated client label will be
able to connect to Redis. This label will be displayed in the output
after a successful install.
With `networkPolicy.ingressNSMatchLabels` pods from other namespaces can connect to redis. Set `networkPolicy.ingressNSPodMatchLabels` to match pod labels in matched namespace. For example, for a namespace labeled `redis=external` and pods in that namespace labeled `redis-client=true` the fields should be set:
With `networkPolicy.ingressNSMatchLabels` pods from other namespaces can connect to redis. Set `networkPolicy.ingressNSPodMatchLabels` to match pod labels in matched namespace. For example, for a namespace labeled `redis=external` and pods in that namespace labeled `redis-client=true` the fields should be set:
```
networkPolicy:
@@ -0,0 +1,23 @@
{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: {{ template "redis.fullname" . }}
{{- with .Values.metrics.prometheusRule.namespace }}
namespace: {{ . }}
{{- end }}
labels:
app: {{ template "redis.name" . }}
chart: {{ template "redis.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- with .Values.metrics.prometheusRule.additionalLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- with .Values.metrics.prometheusRule.rules }}
groups:
- name: {{ template "redis.name" $ }}
rules: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- end }}
+39
View File
@@ -520,6 +520,45 @@ metrics:
annotations: {}
labels: {}
## Custom PrometheusRule to be defined
## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
prometheusRule:
enabled: false
additionalLabels: {}
namespace: ""
rules: []
## These are just examples rules, please adapt them to your needs.
## Make sure to constraint the rules to the current postgresql service.
# - alert: RedisDown
# expr: redis_up{service="{{ template "redis.fullname" . }}-metrics"} == 0
# for: 2m
# labels:
# severity: error
# annotations:
# summary: Redis instance {{ "{{ $instance }}" }} down
# description: Redis instance {{ "{{ $instance }}" }} is down.
# - alert: RedisMemoryHigh
# expr: >
# redis_memory_used_bytes{service="{{ template "redis.fullname" . }}-metrics"} * 100
# /
# redis_memory_max_bytes{service="{{ template "redis.fullname" . }}-metrics"}
# > 90 =< 100
# for: 2m
# labels:
# severity: error
# annotations:
# summary: Redis instance {{ "{{ $instance }}" }} is using too much memory
# description: Redis instance {{ "{{ $instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
# - alert: RedisKeyEviction
# expr: increase(redis_evicted_keys_total{service="{{ template "redis.fullname" . }}-metrics"}[5m]) > 0
# for: 1s
# labels:
# severity: error
# annotations:
# summary: Redis instance {{ "{{ $instance }}" }} has evicted keys
# description: Redis instance {{ "{{ $instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
##
## Init containers parameters:
## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
+40
View File
@@ -510,6 +510,46 @@ metrics:
selector:
prometheus: kube-prometheus
## Custom PrometheusRule to be defined
## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
prometheusRule:
enabled: false
additionalLabels: {}
namespace: ""
rules: []
## These are just examples rules, please adapt them to your needs.
## Make sure to constraint the rules to the current postgresql service.
# - alert: RedisDown
# expr: redis_up{service="{{ template "redis.fullname" . }}-metrics"} == 0
# for: 2m
# labels:
# severity: error
# annotations:
# summary: Redis instance {{ "{{ $instance }}" }} down
# description: Redis instance {{ "{{ $instance }}" }} is down.
# - alert: RedisMemoryHigh
# expr: >
# redis_memory_used_bytes{service="{{ template "redis.fullname" . }}-metrics"} * 100
# /
# redis_memory_max_bytes{service="{{ template "redis.fullname" . }}-metrics"}
# > 90 =< 100
# for: 2m
# labels:
# severity: error
# annotations:
# summary: Redis instance {{ "{{ $instance }}" }} is using too much memory
# description: Redis instance {{ "{{ $instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
# - alert: RedisKeyEviction
# expr: increase(redis_evicted_keys_total{service="{{ template "redis.fullname" . }}-metrics"}[5m]) > 0
# for: 1s
# labels:
# severity: error
# annotations:
# summary: Redis instance {{ "{{ $instance }}" }} has evicted keys
# description: Redis instance {{ "{{ $instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
## Metrics exporter pod priorityClassName
# priorityClassName: {}
service: