Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clickhousekeeperinstallation dont have dedicated data volume (PVC) #1565

Open
meektechie opened this issue Nov 19, 2024 · 3 comments
Open

Clickhousekeeperinstallation dont have dedicated data volume (PVC) #1565

meektechie opened this issue Nov 19, 2024 · 3 comments

Comments

@meektechie
Copy link

meektechie commented Nov 19, 2024

Clickhousekeeperinstallation dont have dedicated data volume (PVC) and it uses Overlay volume when pod rotated It lost the clickhouse metadata. Is there a particular reason for running the clickhousekeeper pods without dedicated volumes?
Screenshot 2024-11-19 at 2 45 59 PM

Error:
last_error_message: Table is in readonly mode since table metadata was not found in zookeeper:

@bakavets
Copy link

bakavets commented Nov 19, 2024

Hi! Try to add dataVolumeClaimTemplate: default here:

...
  defaults:
    templates:
      # Templates are specified as default for all clusters
      podTemplate: default
+     dataVolumeClaimTemplate: default

  templates:
    podTemplates:
...

@meektechie
Copy link
Author

@bakavets Got below response. my operator chart version is 0.23.7

Error from server (BadRequest): error when creating "chk.yaml": ClickHouseKeeperInstallation in version "v1" cannot be handled as a ClickHouseKeeperInstallation: strict decoding error: unknown field "spec.defaults"

@Slach
Copy link
Collaborator

Slach commented Nov 20, 2024

@meektechie upgrade your CRDS separatelly if you use helm, and upgrade operator helm chart to 0.24.0

  kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml
  kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml
  kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml
  kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants