|
| 1 | +# HelixDB Kubernetes Deployment |
| 2 | + |
| 3 | +This repository contains a **Helm chart** and a **Docker image** to deploy the `helixdb` binary as a containerized service on Kubernetes. |
| 4 | + |
| 5 | +The deployment is designed to run in a **minimal Debian-based container** and uses a **Persistent Volume Claim** for data storage. |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## Docker Image |
| 10 | + |
| 11 | +The container image runs the the `helix-container` binary which was compiled with the helix push tool previously. |
| 12 | + |
| 13 | +## Build and Push |
| 14 | + |
| 15 | +The Helm chart is located in the helm/ directory and provides a configurable Kubernetes deployment, service, and persistent volume claim. |
| 16 | + |
| 17 | +### Helm Chart Structure |
| 18 | + |
| 19 | +The Helm chart is located in the `helm/` directory and provides a configurable Kubernetes deployment, service, and persistent volume claim. |
| 20 | + |
| 21 | +```text |
| 22 | +helm/ |
| 23 | +├── Chart.yaml # Chart metadata |
| 24 | +├── values.yaml # Default configuration values |
| 25 | +└── templates/ |
| 26 | + ├── deployment.yaml # Deployment definition |
| 27 | + ├── pvc.yaml # PersistentVolumeClaim definition |
| 28 | + └── service.yaml # Service definition |
| 29 | +``` |
| 30 | + |
| 31 | + |
| 32 | +## Deploying to Kubernetes |
| 33 | + |
| 34 | +helm install helixdb ./helm -n your-namespace --create-namespace |
| 35 | + |
| 36 | +## using an existing PVC |
| 37 | + |
| 38 | +If you are using a previously created PVC, make sure it has accessModes of type ReadWriteOncePod and includes the following annotations: |
| 39 | + |
| 40 | + * app.kubernetes.io/managed-by=Helm |
| 41 | + * meta.helm.sh/release-namespace=<namespace> |
| 42 | + * meta.helm.sh/release-name=helixdb |
| 43 | + |
| 44 | +## Notes |
| 45 | + |
| 46 | +The container uses non-root UID 1001 for security and OpenShift compatibility. |
| 47 | + |
| 48 | +The HELIX_DATA_DIR environment variable points to /data, which is mounted via a PersistentVolumeClaim. |
| 49 | + |
| 50 | +All configurations are customizable via values.yaml. |
0 commit comments