-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
2,550 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
apiVersion: v1 | ||
name: redis-ha | ||
apiVersion: v2 | ||
appVersion: 7.2.4 | ||
description: This Helm chart provides a highly available Redis implementation with | ||
a master/slave configuration and uses Sentinel sidecars for failover management | ||
home: http://redis.io/ | ||
engine: gotpl | ||
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png | ||
keywords: | ||
- redis | ||
- keyvalue | ||
- database | ||
version: 3.9.0 | ||
appVersion: 5.0.14 | ||
description: Highly available Kubernetes implementation of Redis | ||
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png | ||
maintainers: | ||
- email: [email protected] | ||
name: ssalaues | ||
- email: [email protected] | ||
name: dandydeveloper | ||
details: | ||
This Helm chart provides a highly available Redis implementation with a master/slave configuration | ||
and uses Sentinel sidecars for failover management | ||
name: redis-ha | ||
sources: | ||
- https://redis.io/download | ||
- https://github.com/scality/Zenko/tree/development/1.0/kubernetes/zenko/charts/redis-ha | ||
- https://github.com/DandyDeveloper/charts/blob/master/charts/redis-ha | ||
- https://github.com/oliver006/redis_exporter | ||
version: 4.26.1 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ haproxy: | |
any.domain/key: "value" | ||
serviceAccount: | ||
create: true | ||
exporter: | ||
enabled: false | ||
metrics: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
623 changes: 533 additions & 90 deletions
623
src/test/ks-core/charts/redis-ha/templates/_configs.tpl
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{/* | ||
Return the proper image name | ||
*/}} | ||
|
||
{{- define "common.images.image" -}} | ||
{{- $registryName := .global.imageRegistry -}} | ||
{{- $repositoryName := .imageRoot.repository -}} | ||
{{- $separator := ":" -}} | ||
{{- $termination := .global.tag | toString -}} | ||
{{- if .imageRoot.registry }} | ||
{{- $registryName = .imageRoot.registry -}} | ||
{{- end -}} | ||
{{- if .imageRoot.tag }} | ||
{{- $termination = .imageRoot.tag | toString -}} | ||
{{- end -}} | ||
{{- if .imageRoot.digest }} | ||
{{- $separator = "@" -}} | ||
{{- $termination = .imageRoot.digest | toString -}} | ||
{{- end -}} | ||
{{- printf "%s/%s%s%s" $registryName $repositoryName $separator $termination -}} | ||
{{- end -}} | ||
|
||
|
||
{{- define "image" -}} | ||
{{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) }} | ||
{{- end -}} | ||
|
||
{{- define "haproxy.image" -}} | ||
{{ include "common.images.image" (dict "imageRoot" .Values.haproxy.image "global" .Values.global) }} | ||
{{- end -}} | ||
|
||
{{- define "sysctlImage" -}} | ||
{{ include "common.images.image" (dict "imageRoot" .Values.sysctlImage "global" .Values.global) }} | ||
{{- end -}} | ||
|
||
{{- define "exporter.image" -}} | ||
{{ include "common.images.image" (dict "imageRoot" .Values.exporter.image "global" .Values.global) }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 30 additions & 5 deletions
35
src/test/ks-core/charts/redis-ha/templates/redis-ha-announce-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/ks-core/charts/redis-ha/templates/redis-ha-exporter-script-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.exporter.script }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "redis-ha.fullname" . }}-exporter-script-configmap | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
{{ include "labels.standard" . | indent 4 }} | ||
{{- range $key, $value := .Values.extraLabels }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
data: | ||
script: {{ toYaml .Values.exporter.script | indent 2 }} | ||
{{- end }} |
20 changes: 20 additions & 0 deletions
20
src/test/ks-core/charts/redis-ha/templates/redis-ha-health-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "redis-ha.fullname" . }}-health-configmap | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app: {{ template "redis-ha.fullname" . }} | ||
{{- range $key, $value := .Values.extraLabels }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
data: | ||
redis_liveness.sh: | | ||
{{- include "redis_liveness.sh" . }} | ||
redis_readiness.sh: | | ||
{{- include "redis_readiness.sh" . }} | ||
sentinel_liveness.sh: | | ||
{{- include "sentinel_liveness.sh" . }} |
Oops, something went wrong.