-
Notifications
You must be signed in to change notification settings - Fork 507
Open
Labels
KeeperClickHouse Keeper issuesClickHouse Keeper issues
Description
CHK creates StatefulSets differently from CHI, making it very difficult to change storage classes. Unlike the ClickHouse (CHI) operator which allows for manual intervention through deletion of the PVC and POD, allowing the operator to reconcile, CHK STS store only the PVC name and not the full volume claim, which appears to lock the keeper pods on restart into a pending state.
CHK Reproduction
- Create CHK with storageClassName: ssd
- Update CHK to storageClassName: ssd2
- Delete PVC and pod to force recreation:
- Result: Pod stuck in Pending. PVC never recreated.
CHI Reproduction
- Create CHI with storageClassName: ssd
- Update CHI to storageClassName: ssd2
- Delete PVC and pod to force recreation:
- Result: Pod starts up and new PVC is created
Current CHK work around
- Delete the clickhouse-operator deployment
- Deploy the storage class update
- Locally, create new yaml files for all PVCs you will need to be replacing
- Delete the PVC of the pod you want to flip over
- Once the PVC is deleted (after the STS rolls the pod) create the new PVC from the local .yaml file (apply -f $FILE in kubectl)
- Repeat steps 4-6 for all other pods
- Redeploy the operator, which should do nothing
Ideally we'd like some way to configure the operator to recreate the PVC when a storage class is updated, but at the very least it would be good to have similar behaviour to CHI which allows for easier intervention.
Metadata
Metadata
Assignees
Labels
KeeperClickHouse Keeper issuesClickHouse Keeper issues