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

Commit

Permalink
KeyDB 0.2.0
Browse files Browse the repository at this point in the history
* Readme added
* `appendonly` option added
  • Loading branch information
Antiarchitect committed Mar 1, 2020
1 parent 46fe581 commit a12f800
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 3 deletions.
1 change: 1 addition & 0 deletions keydb/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
.idea/
*.tmproj
.vscode/
README.md
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.1.0
version: 0.2.0
keywords:
- keydb
- redis
Expand Down
44 changes: 44 additions & 0 deletions keydb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# KeyDB

[KeyDB](https://keydb.dev) clocks in at 5X faster than Redis (node vs node). KeyDB is a popular drop in Redis alternative that people flock to because it enables you to consolidate a lot of the complexities associated with Redis. KeyDB is multithreaded with the ability to use several storage mediums natively and scale vertically. The superior architecture is enabling KeyDB to become the bridge between cache layer and traditional databases offering performance and durability.

## TL;DR;

```bash
helm repo add enapter https://enapter.github.io/charts/
helm install enapter/keydb
```

## Introduction

This chart bootstraps a [KeyDB](https://keydb.dev) highly available multi-master statefulset in a [Kubernetes](http://kubernetes.io) cluster using the Helm package manager.

## Prerequisites

- PV provisioner support in the underlying infrastructure if you want to enable persistence

## Installing the Chart

To install the chart

```bash
helm repo add enapter https://enapter.github.io/charts/
helm install enapter/keydb
```

## Configuration

The following table lists the configurable parameters of the KeyDB chart and their default values.

| Parameter | Description | Default |
|:-------------------------------|:------------------------------------------------|:------------------------------|
| `image` | KeyDB docker image | `eqalpha/keydb:x86_64_v5.3.0` |
| `imagePullPolicy` | K8s imagePullPolicy | `IfNotPresent` |
| `nodes` | Number of KeyDB master pods | `3` |
| `password` | If enabled KeyDB servers are password-protected | `""` |
| `port` | KeyDB service port clients connect to | `6379` |
| `threads` | KeyDB server-threads per node | `2` |
| `appendonly` | KeyDB appendonly setting | `"no"` |
| `persistentVolume.accessModes` | Volume access modes | `[ReadWriteOnce]` |
| `persistentVolume.enabled` | Should PVC be created via volumeClaimTemplates | `false` |
| `persistentVolume.size` | Size of the volume | `1Gi` |
1 change: 1 addition & 0 deletions keydb/templates/sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
args:
- /etc/keydb/redis.conf
- --active-replica yes
- --appendonly {{ .Values.appendonly }}
- --bind 0.0.0.0
- --multi-master yes
- --port 6379
Expand Down
6 changes: 4 additions & 2 deletions keydb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ password: ""

port: 6379

threads: 2

appendonly: "no"

persistentVolume:
enabled: false
accessModes:
- ReadWriteOnce
size: 1Gi

threads: 2

0 comments on commit a12f800

Please sign in to comment.