Skip to content

Commit

Permalink
support redis extra args
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredTan95 committed Nov 21, 2024
1 parent df55299 commit 3fa3780
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cmdb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.10
version: 0.1.11

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 8 additions & 0 deletions charts/cmdb/templates/redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ spec:
image: {{ .Values.redis.image.registry }}/{{ .Values.redis.image.repository }}:{{ .Values.redis.image.tag }}
ports:
- containerPort: 6379
{{- if .Values.redis.command.name }}
command:
- {{ .Values.redis.command.name }}
{{- end }}
args:
{{- range .Values.redis.command.extraArgs }}
- {{ . }}
{{- end }}
resources:
{{- toYaml .Values.redis.resources | nindent 12 }}
livenessProbe:
Expand Down
7 changes: 7 additions & 0 deletions charts/cmdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ redis:
registry: docker.io
repository: library/redis
tag: "6.2.5"
command:
name: ""
extraArgs: []
# command:
# name: redis-server
# extraArgs:
# - --protected-mode no
resources:
limits:
cpu: 1000m
Expand Down

0 comments on commit 3fa3780

Please sign in to comment.