Skip to content

Conversation

@fajarhide
Copy link

Summary

  • Auto-apply clickhouse.extraPorts from values.yaml to ClickHouse service templates.

  • Keeps container ports and service ports in sync with a single configuration.

Changes

  • Update charts/clickhouse/templates/chi.yaml

    • Add extraPorts to the regular service template.

    • Ensure extraPorts in the LoadBalancer service template maps containerPortport and targetPort.

Usage

Define once in values.yaml:

clickhouse:
  extraPorts:
    - name: custom-port
      containerPort: 8080

Result

custom-port is exposed on:

  • The ClickHouse container
  • The regular Service
  • The LoadBalancer Service (when enabled)

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