Add NodePort service to expose ClickHouse externally
All checks were successful
CI / build (push) Successful in 1m21s
CI / docker (push) Successful in 38s
CI / deploy (push) Successful in 6s

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 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-12 21:16:45 +01:00
parent 9dffa9ea81
commit a1280609f6

View File

@@ -64,3 +64,22 @@ spec:
- port: 9000 - port: 9000
targetPort: 9000 targetPort: 9000
name: native 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