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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user