Compare commits
2 Commits
redis-repl
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 73c73129d4 | |||
| 57c2ce938f |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: redis-replication
|
name: redis-replication
|
||||||
version: 0.7.0
|
version: 1.0.1
|
||||||
description: Redis Replication with Sentinel
|
description: Redis Replication with Sentinel
|
||||||
keywords:
|
keywords:
|
||||||
- redis-operator
|
- redis-operator
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# redis-replication
|
# redis-replication
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Redis Replication with Sentinel
|
Redis Replication with Sentinel
|
||||||
|
|
||||||
@@ -22,19 +22,16 @@ Redis Replication with Sentinel
|
|||||||
| additionalLabels | object | `{}` | Add additional labels |
|
| additionalLabels | object | `{}` | Add additional labels |
|
||||||
| existingSecret | object | `{"enabled":false,"key":"password","name":"secret-name"}` | Password |
|
| existingSecret | object | `{"enabled":false,"key":"password","name":"secret-name"}` | Password |
|
||||||
| namespaceOverride | string | `""` | Override the namespace of the chart |
|
| namespaceOverride | string | `""` | Override the namespace of the chart |
|
||||||
| redisReplication | object | `{"clusterSize":3,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis","tag":"v8.4.0"},"podSecurityContext":{"fsGroup":1000,"runAsUser":1000},"redisExporter":{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}},"resources":{"requests":{"cpu":"10m","memory":"32Mi"}},"volumeClaimTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"ceph-block"}}}` | Redis Replication settings |
|
| redisReplication | object | `{"clusterSize":3,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis","tag":"v8.4.0"},"podSecurityContext":{"fsGroup":1000,"runAsUser":1000},"redisExporter":{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}},"resources":{"requests":{"cpu":"10m","memory":"32Mi"}},"sentinel":{"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"},"resources":{"requests":{"cpu":"10m","memory":"32Mi"}},"size":3},"volumeClaimTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"ceph-block"}}}` | Redis Replication settings |
|
||||||
| redisReplication.image | object | `{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis","tag":"v8.4.0"}` | Image |
|
| redisReplication.image | object | `{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis","tag":"v8.4.0"}` | Image |
|
||||||
| redisReplication.podSecurityContext | object | `{"fsGroup":1000,"runAsUser":1000}` | Security |
|
| redisReplication.podSecurityContext | object | `{"fsGroup":1000,"runAsUser":1000}` | Security |
|
||||||
| redisReplication.redisExporter | object | `{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}}` | Metrics |
|
| redisReplication.redisExporter | object | `{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}}` | Metrics |
|
||||||
| redisReplication.resources | object | `{"requests":{"cpu":"10m","memory":"32Mi"}}` | Resources |
|
| redisReplication.resources | object | `{"requests":{"cpu":"10m","memory":"32Mi"}}` | Resources |
|
||||||
|
| redisReplication.sentinel | object | `{"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"},"resources":{"requests":{"cpu":"10m","memory":"32Mi"}},"size":3}` | Redis Sentinel settings |
|
||||||
|
| redisReplication.sentinel.image | object | `{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"}` | Image |
|
||||||
|
| redisReplication.sentinel.resources | object | `{"requests":{"cpu":"10m","memory":"32Mi"}}` | Resources |
|
||||||
| redisReplication.volumeClaimTemplate | object | `{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"ceph-block"}}` | Storage |
|
| redisReplication.volumeClaimTemplate | object | `{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"ceph-block"}}` | Storage |
|
||||||
| redisSentinel | object | `{"clusterSize":3,"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"},"podSecurityContext":{"fsGroup":1000,"runAsUser":1000},"redisExporter":{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}},"resources":{"requests":{"cpu":"10m","memory":"32Mi"}}}` | Redis Sentinel settings |
|
|
||||||
| redisSentinel.image | object | `{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"}` | Image |
|
|
||||||
| redisSentinel.podSecurityContext | object | `{"fsGroup":1000,"runAsUser":1000}` | Security |
|
|
||||||
| redisSentinel.redisExporter | object | `{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}}` | Metrics |
|
|
||||||
| redisSentinel.resources | object | `{"requests":{"cpu":"10m","memory":"32Mi"}}` | Resources |
|
|
||||||
| replicationNameOverride | string | `""` | Override the name of the resources |
|
| replicationNameOverride | string | `""` | Override the name of the resources |
|
||||||
| sentinelNameOverride | string | `""` | |
|
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
|
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
|
||||||
|
|||||||
@@ -9,14 +9,6 @@ Expand the names
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- define "redis.sentinelName" -}}
|
|
||||||
{{- if .Values.sentinelNameOverride }}
|
|
||||||
{{- .Values.sentinelNameOverride | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "redis-sentinel-%s" .Release.Name -}}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Allow the release namespace to be overridden for multi-namespace deployments in combined charts
|
Allow the release namespace to be overridden for multi-namespace deployments in combined charts
|
||||||
*/}}
|
*/}}
|
||||||
@@ -57,9 +49,3 @@ app.kubernetes.io/name: {{ include "redis.replicationName" $ }}
|
|||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- define "redis.sentinelSelectorLabels" -}}
|
|
||||||
app.kubernetes.io/name: {{ include "redis.sentinelName" $ }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
{{- end }}
|
|
||||||
|
|||||||
@@ -20,9 +20,8 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{- with .Values.redisReplication.resources }}
|
{{- with .Values.redisReplication.resources }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
{{- if .Values.existingSecret.enabled }}
|
||||||
{{ if .Values.existingSecret.enabled }}
|
|
||||||
redisSecret:
|
redisSecret:
|
||||||
name: {{ .Values.existingSecret.name }}
|
name: {{ .Values.existingSecret.name }}
|
||||||
key: {{ .Values.existingSecret.key }}
|
key: {{ .Values.existingSecret.key }}
|
||||||
@@ -38,21 +37,21 @@ spec:
|
|||||||
enabled: {{ .Values.redisReplication.redisExporter.enabled }}
|
enabled: {{ .Values.redisReplication.redisExporter.enabled }}
|
||||||
image: "{{ .Values.redisReplication.redisExporter.image.repository }}:{{ .Values.redisReplication.redisExporter.image.tag }}"
|
image: "{{ .Values.redisReplication.redisExporter.image.repository }}:{{ .Values.redisReplication.redisExporter.image.tag }}"
|
||||||
|
|
||||||
{{- if .Values.redisSentinel.enabled }}
|
{{ if .Values.redisReplication.sentinel.enabled -}}
|
||||||
sentinel:
|
sentinel:
|
||||||
image: "{{ .Values.redisSentinel.image.repository }}:{{ .Values.redisSentinel.image.tag }}"
|
image: "{{ .Values.redisReplication.sentinel.image.repository }}:{{ .Values.redisReplication.sentinel.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.redisSentinel.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.redisReplication.sentinel.image.pullPolicy }}
|
||||||
|
|
||||||
{{ if .Values.existingSecret.enabled }}
|
{{- if .Values.existingSecret.enabled }}
|
||||||
redisSecret:
|
redisSecret:
|
||||||
name: {{ .Values.existingSecret.name }}
|
name: {{ .Values.existingSecret.name }}
|
||||||
key: {{ .Values.existingSecret.key }}
|
key: {{ .Values.existingSecret.key }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
{{- with .Values.redisSentinel.resources }}
|
{{- with .Values.redisReplication.sentinel.resources }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
size: {{ .Values.redisSentinel.clusterSize }}
|
size: {{ .Values.redisReplication.sentinel.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
# -- Override the name of the resources
|
# -- Override the name of the resources
|
||||||
replicationNameOverride: ""
|
replicationNameOverride: ""
|
||||||
sentinelNameOverride: ""
|
|
||||||
|
|
||||||
# -- Override the namespace of the chart
|
# -- Override the namespace of the chart
|
||||||
namespaceOverride: ""
|
namespaceOverride: ""
|
||||||
@@ -57,36 +56,19 @@ redisReplication:
|
|||||||
scrapeTimeout: 10s
|
scrapeTimeout: 10s
|
||||||
extraLabels: {}
|
extraLabels: {}
|
||||||
|
|
||||||
# -- Redis Sentinel settings
|
# -- Redis Sentinel settings
|
||||||
redisSentinel:
|
sentinel:
|
||||||
enabled: false
|
enabled: false
|
||||||
clusterSize: 3
|
size: 3
|
||||||
|
|
||||||
# -- Security
|
# -- Image
|
||||||
podSecurityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
|
|
||||||
# -- Image
|
|
||||||
image:
|
|
||||||
repository: quay.io/opstree/redis-sentinel
|
|
||||||
tag: v8.4.0
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
|
|
||||||
# -- Resources
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 10m
|
|
||||||
memory: 32Mi
|
|
||||||
|
|
||||||
# -- Metrics
|
|
||||||
redisExporter:
|
|
||||||
enabled: true
|
|
||||||
image:
|
image:
|
||||||
repository: quay.io/opstree/redis-exporter
|
repository: quay.io/opstree/redis-sentinel
|
||||||
tag: v1.80.1
|
tag: v8.4.0
|
||||||
serviceMonitor:
|
pullPolicy: IfNotPresent
|
||||||
enabled: true
|
|
||||||
interval: 30s
|
# -- Resources
|
||||||
scrapeTimeout: 10s
|
resources:
|
||||||
extraLabels: {}
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 32Mi
|
||||||
|
|||||||
Reference in New Issue
Block a user