Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
keydb 0.5.0:
Browse files Browse the repository at this point in the history
* KeyDB container resources are now configurable
* KeyDB pod securityContext is now configurable
  • Loading branch information
Antiarchitect committed Mar 3, 2020
1 parent 56366b0 commit 7908697
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion keydb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: keydb
description: A Helm chart for KeyDB multimaster setup
type: application
version: 0.4.1
version: 0.5.0
keywords:
- keydb
- redis
Expand Down
2 changes: 2 additions & 0 deletions keydb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ The following table lists the configurable parameters of the KeyDB chart and the
| `persistentVolume.enabled` | Should PVC be created via volumeClaimTemplates | `true` |
| `persistentVolume.accessModes` | Volume access modes | `[ReadWriteOnce]` |
| `persistentVolume.size` | Size of the volume | `1Gi` |
| `resources` | K8s Resources for KeyDB containers | `{}` |
| `securityContext` | K8s SecurityContext for KeyDB pods | `{}` |
22 changes: 12 additions & 10 deletions keydb/templates/sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ spec:
- name: keydb
image: {{ .Values.image }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
volumeMounts:
- name: keydb-data
mountPath: /data
- name: utils
mountPath: /utils
readOnly: true
command:
- /utils/server.sh
ports:
- name: keydb
containerPort: 6379
Expand All @@ -53,8 +49,16 @@ spec:
readinessProbe:
tcpSocket:
port: keydb
command:
- /utils/server.sh
resources:
{{ toYaml .Values.resources | indent 10 }}
volumeMounts:
- name: keydb-data
mountPath: /data
- name: utils
mountPath: /utils
readOnly: true
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
volumes:
- name: utils
configMap:
Expand All @@ -67,8 +71,6 @@ spec:
- name: keydb-data
emptyDir: {}
{{- end }}
resources:
{{ toYaml .Values.resources | indent 8 }}
{{- if .Values.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
11 changes: 10 additions & 1 deletion keydb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ persistentVolume:
- ReadWriteOnce
size: 1Gi

resources: {}
resources: {}

# Please read https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls
# before sysctls setup
securityContext: {}
# sysctls:
# - name: net.core.somaxconn
# value: "512"
# - name: vm.overcommit_memory
# value: "1"

0 comments on commit 7908697

Please sign in to comment.