Compare commits
1 Commits
generic-de
...
redis-repl
| Author | SHA1 | Date | |
|---|---|---|---|
| 2fd3129e70 |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: redis-replication
|
name: redis-replication
|
||||||
version: 0.6.0
|
version: 0.7.0
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ spec:
|
|||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
{{- with .Values.redisReplication.podSecurityContext }}
|
{{- with .Values.redisReplication.podSecurityContext }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
||||||
kubernetesConfig:
|
kubernetesConfig:
|
||||||
image: "{{ .Values.redisReplication.image.repository }}:{{ .Values.redisReplication.image.tag }}"
|
image: "{{ .Values.redisReplication.image.repository }}:{{ .Values.redisReplication.image.tag }}"
|
||||||
@@ -26,13 +26,13 @@ spec:
|
|||||||
redisSecret:
|
redisSecret:
|
||||||
name: {{ .Values.existingSecret.name }}
|
name: {{ .Values.existingSecret.name }}
|
||||||
key: {{ .Values.existingSecret.key }}
|
key: {{ .Values.existingSecret.key }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
volumeClaimTemplate:
|
volumeClaimTemplate:
|
||||||
{{- with .Values.redisReplication.volumeClaimTemplate }}
|
{{- with .Values.redisReplication.volumeClaimTemplate }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
||||||
redisExporter:
|
redisExporter:
|
||||||
enabled: {{ .Values.redisReplication.redisExporter.enabled }}
|
enabled: {{ .Values.redisReplication.redisExporter.enabled }}
|
||||||
@@ -47,12 +47,12 @@ spec:
|
|||||||
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.redisSentinel.resources }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
||||||
size: {{ .Values.redisSentinel.clusterSize }}
|
size: {{ .Values.redisSentinel.clusterSize }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
# {{- if .Values.redisSentinel.enabled }}
|
|
||||||
# ---
|
|
||||||
# apiVersion: redis.redis.opstreelabs.in/v1beta2
|
|
||||||
# kind: RedisSentinel
|
|
||||||
# metadata:
|
|
||||||
# name: {{ include "redis.sentinelName" . }}
|
|
||||||
# namespace: {{ include "redis.namespace" . }}
|
|
||||||
# labels:
|
|
||||||
# {{- include "redis.labels" . | nindent 4 }}
|
|
||||||
# {{- include "redis.sentinelSelectorLabels" . | nindent 4 }}
|
|
||||||
# spec:
|
|
||||||
# clusterSize: {{ .Values.redisSentinel.clusterSize }}
|
|
||||||
|
|
||||||
# podSecurityContext:
|
|
||||||
# {{- with .Values.redisSentinel.podSecurityContext }}
|
|
||||||
# {{- toYaml . | nindent 10 }}
|
|
||||||
# {{ end }}
|
|
||||||
|
|
||||||
# redisSentinelConfig:
|
|
||||||
# redisReplicationName: {{ include "redis.replicationName" . }}
|
|
||||||
# {{ if .Values.existingSecret.enabled }}
|
|
||||||
# redisReplicationPassword:
|
|
||||||
# secretKeyRef:
|
|
||||||
# name: {{ .Values.existingSecret.name }}
|
|
||||||
# key: {{ .Values.existingSecret.key }}
|
|
||||||
# {{ end }}
|
|
||||||
|
|
||||||
# kubernetesConfig:
|
|
||||||
# image: "{{ .Values.redisSentinel.image.repository }}:{{ .Values.redisSentinel.image.tag }}"
|
|
||||||
# imagePullPolicy: {{ .Values.redisSentinel.image.pullPolicy }}
|
|
||||||
# resources:
|
|
||||||
# {{- with .Values.redisSentinel.resources }}
|
|
||||||
# {{- toYaml . | nindent 10 }}
|
|
||||||
# {{ end }}
|
|
||||||
|
|
||||||
# {{ if .Values.existingSecret.enabled }}
|
|
||||||
# redisSecret:
|
|
||||||
# name: {{ .Values.existingSecret.name }}
|
|
||||||
# key: {{ .Values.existingSecret.key }}
|
|
||||||
# {{ end }}
|
|
||||||
|
|
||||||
# redisExporter:
|
|
||||||
# enabled: {{ .Values.redisSentinel.redisExporter.enabled }}
|
|
||||||
# image: "{{ .Values.redisSentinel.redisExporter.image.repository }}:{{ .Values.redisSentinel.redisExporter.image.tag }}"
|
|
||||||
|
|
||||||
# {{- end }}
|
|
||||||
@@ -22,28 +22,3 @@ spec:
|
|||||||
interval: {{ .Values.redisReplication.redisExporter.serviceMonitor.interval }}
|
interval: {{ .Values.redisReplication.redisExporter.serviceMonitor.interval }}
|
||||||
scrapeTimeout: {{ .Values.redisReplication.redisExporter.serviceMonitor.scrapeTimeout }}
|
scrapeTimeout: {{ .Values.redisReplication.redisExporter.serviceMonitor.scrapeTimeout }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
# {{- if and (.Values.redisSentinel.redisExporter.serviceMonitor.enabled) (.Values.redisSentinel.enabled) }}
|
|
||||||
# ---
|
|
||||||
# apiVersion: monitoring.coreos.com/v1
|
|
||||||
# kind: ServiceMonitor
|
|
||||||
# metadata:
|
|
||||||
# name: {{ include "redis.sentinelName" . }}
|
|
||||||
# namespace: {{ include "redis.namespace" . }}
|
|
||||||
# labels:
|
|
||||||
# {{- include "redis.labels" . | nindent 4 }}
|
|
||||||
# {{- include "redis.sentinelSelectorLabels" . | nindent 4 }}
|
|
||||||
# {{- with .Values.redisSentinel.redisExporter.serviceMonitor.extraLabels }}
|
|
||||||
# {{- toYaml . | nindent 4 }}
|
|
||||||
# {{- end }}
|
|
||||||
# spec:
|
|
||||||
# selector:
|
|
||||||
# matchLabels:
|
|
||||||
# app: {{ include "redis.sentinelName" . }}
|
|
||||||
# redis_setup_type: sentinel
|
|
||||||
# role: sentinel
|
|
||||||
# endpoints:
|
|
||||||
# - port: redis-exporter
|
|
||||||
# interval: {{ .Values.redisSentinel.redisExporter.serviceMonitor.interval }}
|
|
||||||
# scrapeTimeout: {{ .Values.redisSentinel.redisExporter.serviceMonitor.scrapeTimeout }}
|
|
||||||
# {{- end }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user