Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions charts/redis/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
18 changes: 18 additions & 0 deletions charts/redis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v2
name: redis
description: Redis database Helm chart
version: 0.1.0
appVersion: "7.4"
type: application
keywords:
- redis
- database
- cache
home: https://codefresh.io/
maintainers:
- name: codefresh
url: https://codefresh-io.github.io/
dependencies:
- name: cf-common
repository: oci://quay.io/codefresh/charts
version: "0.31.0"
2 changes: 2 additions & 0 deletions charts/redis/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{ $templateName := printf "cf-common-%s.configmaps" (index .Subcharts "cf-common").Chart.Version }}
{{- include $templateName . -}}
2 changes: 2 additions & 0 deletions charts/redis/templates/controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{ $templateName := printf "cf-common-%s.controller" (index .Subcharts "cf-common").Chart.Version }}
{{- include $templateName . -}}
2 changes: 2 additions & 0 deletions charts/redis/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{ $templateName := printf "cf-common-%s.secrets" (index .Subcharts "cf-common").Chart.Version }}
{{- include $templateName . -}}
2 changes: 2 additions & 0 deletions charts/redis/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{ $templateName := printf "cf-common-%s.service" (index .Subcharts "cf-common").Chart.Version }}
{{- include $templateName . -}}
104 changes: 104 additions & 0 deletions charts/redis/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
fullnameOverride: redis

config:
bind: 0.0.0.0
port: 6379
dir: /data
appendonly: "yes"
requirepass: password

global: {}

controller:
enabled: true
type: statefulset
replicas: 1
podManagementPolicy: OrderedReady

container:
image:
registry: docker.io
repository: redis
tag: "7.4"
pullPolicy: IfNotPresent

args:
- "/etc/redis/redis.conf"

probes:
liveness:
enabled: true
type: exec
exec:
command:
- redis-cli
- ping
spec:
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 6
readiness:
enabled: true
type: exec
exec:
command:
- redis-cli
- ping
spec:
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6

resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi

volumeMounts:
config:
path:
- mountPath: /etc/redis/redis.conf
subPath: redis.conf

volumeClaimTemplates:
data:
mountPath: /data
accessMode: ReadWriteOnce
size: 10Gi
storageClass:

configMaps:
config:
enabled: true
data:
redis.conf: |
{{- range $key, $value := .Values.config }}
{{ $key }} {{ $value }}
{{- end }}

volumes:
config:
enabled: true
type: configMap

service:
main:
enabled: true
primary: true
type: ClusterIP
ports:
redis:
port: 6379
protocol: TCP

podSecurityContext: {}
nodeSelector: {}
tolerations: []
affinity: {}
Loading