Skip to content

feat(datalayers-single): add postgres, redis, prometheus protocol support - #1

Merged
Rory-Z merged 2 commits into
mainfrom
feat/datalayers-protocol-support
Apr 9, 2026
Merged

feat(datalayers-single): add postgres, redis, prometheus protocol support#1
Rory-Z merged 2 commits into
mainfrom
feat/datalayers-protocol-support

Conversation

@Rory-Z

@Rory-Z Rory-Z commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add optional PostgreSQL (5432), Redis (6379), and Prometheus (9090) protocol support to the datalayers-single Helm chart
  • Each protocol is toggled via service.{postgres,redis,prometheus}.enabled in values.yaml (all disabled by default)
  • When enabled, the chart injects the DATALAYERS_SERVER__*__ADDR env var, exposes the container port, and adds a Service port
  • Redis credentials reuse the existing auth secret (auth.static)
  • Prometheus tuning params (memtable_size, ttl) use Datalayers defaults, configurable via datalayersConfig TOML if needed

Reference: https://docs.datalayers.cn/datalayers/latest/development-guide/connection.html#端口说明

Changes

File Change
values.yaml Add service.postgres/redis/prometheus blocks
templates/statefulset.yaml Conditional containerPorts + env vars
templates/service.yaml Conditional Service ports
templates/NOTES.txt Conditional port info, connect URLs, port-forward args

Test plan

  • helm lint passes
  • helm template with defaults — no protocol ports in output (unchanged behavior)
  • helm template --set service.postgres.enabled=true — PostgreSQL port + env var present
  • helm template --set service.redis.enabled=true — Redis port + ADDR/USERNAME/PASSWORD env vars present
  • helm template --set service.prometheus.enabled=true — Prometheus port + env var present
  • helm template with all three enabled — all ports and env vars present together

Rory-Z added 2 commits April 9, 2026 10:53
…port

Add optional protocol support toggled via service.{postgres,redis,prometheus}.enabled
in values.yaml. When enabled, the chart injects the corresponding DATALAYERS_SERVER__*__ADDR
env var, exposes the container port, and adds a Service port.

- PostgreSQL (5432): enabled via DATALAYERS_SERVER__POSTGRES__ADDR
- Redis (6379): enabled via DATALAYERS_SERVER__REDIS__ADDR, reuses auth secret for credentials
- Prometheus (9090): enabled via DATALAYERS_SERVER__PROMETHEUS__ADDR

All three are disabled by default, matching Datalayers upstream defaults.
@Rory-Z
Rory-Z merged commit d8967b3 into main Apr 9, 2026
2 checks passed
@Rory-Z
Rory-Z deleted the feat/datalayers-protocol-support branch April 9, 2026 11:05
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.

1 participant