clickhouse-operator icon indicating copy to clipboard operation
clickhouse-operator copied to clipboard

Hardcoded cluster.local DNS suffix for Clickhouse Keeper

Open hmerat opened this issue 1 year ago • 1 comments

Hi! Clickhouse keeper from clickhouse-operator doesn't work because of hardcoded cluster.local suffix. In our k8s installation we use custom domain name, which differs from cluster.local

For Clickhouse, we can override this by using namespaceDomainPattern but this options seems not available for Clickhouse Keeper.

Thanks.

hmerat avatar Jul 18 '24 07:07 hmerat

I'm running into this too - it looks like namespaceDomainPattern is added to the CRD for keeper installations by this commit, but it is not actually respected, and there are hardcoded .svc.cluster.local throughout the codebase.

minor-fixes avatar Jul 29 '24 02:07 minor-fixes

@minor-fixes could you try clickhouse-operator:0.24.0 ?

I checked

minikube start --dns-domain=custom.k8s.local

install operator then applied

apiVersion: "clickhouse-keeper.altinity.com/v1"
kind: "ClickHouseKeeperInstallation"
metadata:
  name: simple1
spec:
  namespaceDomainPattern: "%s.svc.custom.k8s.local"
  configuration:
    clusters:
      - name: "cluster1"
        replicas: 3

Slach avatar Sep 09 '24 05:09 Slach