This repository contains the necessary configurations and instructions for deploying TimescaleDB in the RoadRunner project using Helm charts.
timescaledb/
├── charts/
│ └── timescaledb-single/
├── values/
│ ├── dev-values.yaml
│ └── prod-values.yaml
├── ingress/
│ └── timescaledb-ingress.yaml
└── README.md
- Kubernetes cluster running (dev-cluster or prod-cluster)
- Helm 3.x installed
kubectlconfigured to communicate with your cluster
We use the official TimescaleDB Helm chart for deployment. The chart is not included in this repository but is fetched during the installation process.
To deploy TimescaleDB:
-
Add the TimescaleDB Helm repository:
helm repo add timescale https://charts.timescale.com/ helm repo update -
Install TimescaleDB using the appropriate values file:
For dev environment:
helm install timescaledb-dev timescale/timescaledb-single -f values/dev-values.yaml -n road-runnerFor prod environment:
helm install timescaledb-prod timescale/timescaledb-single -f values/prod-values.yaml -n road-runner -
Apply the Ingress configuration:
kubectl apply -f ingress/timescaledb-ingress.yaml -n road-runner
The values/ directory contains environment-specific configuration files:
dev-values.yaml: Configuration for the development environmentprod-values.yaml: Configuration for the production environment
Modify these files to adjust the TimescaleDB deployment according to your needs.
The ingress/timescaledb-ingress.yaml file contains the Ingress configuration for exposing TimescaleDB services using Traefik. Ensure that Traefik is properly set up in your cluster before applying this configuration.
For backup, restore, and other maintenance tasks, refer to the official TimescaleDB documentation and the Helm chart documentation.
If you encounter issues with the deployment, check the following:
- Ensure all prerequisites are met
- Verify that the values in the configuration files are correct
- Check the pod status and logs using
kubectl
For more detailed troubleshooting, consult the TimescaleDB and Kubernetes documentation.