Skip to content

Conversation

@alxtkr77
Copy link
Member

@alxtkr77 alxtkr77 commented Dec 25, 2025

Summary

  • Add TimescaleDB Helm chart support (StatefulSet, Service, Secret)
  • Remove TDEngine chart templates completely
  • Enable TimescaleDB as the default TSDB for MLRun CE

Related Issues

  • ML-11627
  • CEML-591
  • ML-11845

Changes

  • Added timescaledb section to values.yaml with configurable image, auth, persistence, and resources
  • Created TimescaleDB templates: statefulset.yaml, service.yaml, secret.yaml
  • Added TimescaleDB helper templates to _helpers.tpl
  • Removed TDEngine templates directory
  • Updated admin_installation_values.yaml to reference timescaledb

Test plan

  • Helm lint passed
  • Deployed to local Kind cluster with minimal values
  • Verified TimescaleDB pod running with PostgreSQL 17 and TimescaleDB extension

Related PR

mlrun/functions#961

@alxtkr77 alxtkr77 force-pushed the ML-11627/timescaledb-support branch from 35296dc to dfaafbb Compare December 25, 2025 13:38
Alex Toker added 2 commits December 25, 2025 13:40
Add TimescaleDB as an optional TSDB backend for MLRun model monitoring,
providing an alternative to TDEngine.

- Add timescaledb section in values.yaml (disabled by default)
- Add StatefulSet, Service, and Secret templates
- Add helper templates for labels, selectors, and connection string
- Use timescale/timescaledb-ha:pg16-ts2.17.2-all image

Reference: ML-11482
Remove TDEngine and use TimescaleDB as the sole time-series database
backend for model monitoring.

- Remove TDEngine templates (statefulset, service, configmap)
- Remove TDEngine configuration from values.yaml
- Remove TDEngine helper templates from _helpers.tpl
- Update admin_installation_values.yaml to reference timescaledb
- Enable TimescaleDB by default

Reference: ML-11482
@alxtkr77 alxtkr77 force-pushed the ML-11627/timescaledb-support branch from dfaafbb to b00d396 Compare December 25, 2025 13:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces TDEngine with TimescaleDB as the time-series database for MLRun CE model monitoring. The change involves removing all TDEngine-related Helm templates and configuration, and introducing a new TimescaleDB StatefulSet deployment with PostgreSQL 17 and TimescaleDB extensions.

Key Changes:

  • Complete replacement of TDEngine with TimescaleDB including StatefulSet, Service, and Secret templates
  • Updated values.yaml with TimescaleDB-specific configuration (image, auth, persistence, resources)
  • Added TimescaleDB helper templates to _helpers.tpl for naming, labels, and connection strings
  • Added kind-test.sh script for local testing with Kind cluster

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
tests/kind-test.sh New bash script for testing MLRun CE deployment on local Kind cluster with TimescaleDB verification
charts/mlrun-ce/values.yaml Replaced tdengine configuration with timescaledb section including auth, persistence, and resource settings
charts/mlrun-ce/templates/timescaledb/statefulset.yaml New StatefulSet template for TimescaleDB deployment with PostgreSQL 17, health probes, and persistent storage
charts/mlrun-ce/templates/timescaledb/service.yaml New ClusterIP Service exposing TimescaleDB on port 5432
charts/mlrun-ce/templates/timescaledb/secret.yaml New Secret template storing TimescaleDB authentication credentials
charts/mlrun-ce/templates/tdengine/statefulset.yaml Removed TDEngine StatefulSet template completely
charts/mlrun-ce/templates/tdengine/service.yaml Removed TDEngine Service template completely
charts/mlrun-ce/templates/tdengine/configmap.yaml Removed TDEngine ConfigMap template completely
charts/mlrun-ce/templates/_helpers.tpl Replaced tdengine helper templates with timescaledb equivalents for naming, labels, and connection strings
charts/mlrun-ce/admin_installation_values.yaml Updated reference from tdengine to timescaledb
charts/mlrun-ce/Chart.yaml Bumped chart version from 0.10.1-rc3 to 0.10.1-rc4

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@assaf758 assaf758 self-requested a review December 31, 2025 11:22
Alex Toker added 2 commits January 4, 2026 10:51
- Add urlquery encoding for username/password in connection string helper
  to handle special characters properly
- Pin image tag to specific version pg17.7-ts2.24.0 for reproducible deployments
Use trap with RETURN signal to ensure temp values file is cleaned up
even if helm command fails, making the script suitable for CI/CD use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants