From a1280609f6349da736b2514a87cc49dd99898d8c Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Thu, 12 Mar 2026 21:16:45 +0100 Subject: [PATCH] Add NodePort service to expose ClickHouse externally HTTP on port 30123, native protocol on port 30900. Keeps the existing headless service for internal StatefulSet DNS. Co-Authored-By: Claude Opus 4.6 --- deploy/clickhouse.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/deploy/clickhouse.yaml b/deploy/clickhouse.yaml index 771bde62..4992f8ad 100644 --- a/deploy/clickhouse.yaml +++ b/deploy/clickhouse.yaml @@ -64,3 +64,22 @@ spec: - port: 9000 targetPort: 9000 name: native +--- +apiVersion: v1 +kind: Service +metadata: + name: clickhouse-external + namespace: cameleer +spec: + type: NodePort + selector: + app: clickhouse + ports: + - port: 8123 + targetPort: 8123 + nodePort: 30123 + name: http + - port: 9000 + targetPort: 9000 + nodePort: 30900 + name: native