apiVersion: v1
kind: Service
metadata:
  name: clickhouse-id01-server
  namespace: default
spec:
  ports:
  - name: clickhouse-http 
    protocol: TCP
    port: 8123
    targetPort: 8123
  - name: clickhouse-tcp
    protocol: TCP
    port: 9000
    targetPort: 9000
  - name: mysql-tcp
    protocol: TCP
    port: 9004
    targetPort: 9004
  #- name: clickhouse-replica
  #  protocol: TCP
  #  port: 9009
  #  targetPort: 9009
  - name: metrics
    protocol: TCP
    port: 9363
    targetPort: 9363
  type: ClusterIP
  selector:
    app: clickhouse-id01
