demory
by huseyinbabal
Helm chart for Demory
About this chart
Demory
Demory is a very simple distributed in-memory database based on RAFT Consensus Algorithm
Quick Start
$ helm repo add huseyinbabal https://huseyinbabal.github.io/charts
$ helm repo update
$ helm install my-demory huseyinbabal/demory
Introduction
This chart bootstraps a Demory deployments on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.14+
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release huseyinbabal/demory
The command deploys Demory on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm del my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the Demory chart and their default values.
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| application.discoveryStrategy | string | "kubernetes" | |
| application.namespace | string | "default" | |
| application.port | int | 8080 | |
| application.serviceName | string | "demory" | |
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "huseyinbabal/demory" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].backend.serviceName | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].backend.servicePort | int | 80 | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.tls | list | [] | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| securityContext | object | {} | |
| service.port | int | 80 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| tolerations | list | [] |
Deploy demory with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has demory on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdemory is pinned at v0.7.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply