Open janeklb opened 2 days ago
BTW I found that the issue with the PVC getting set to Terminating
can be fixed by using provisioner: Operator
.
Do you have any documentation around why the StatefulSet
is the default provisioner, and when it should / should not be used?
I'm unable to use the https://github.com/Altinity/clickhouse-operator/blob/master/docs/chk-examples/02-extended-3-nodes.yaml example to produce a working ClickHouse Keeper cluster.
The issue's I've bumped into:
dataVolumeClaimTemplate
specified~ fixed here https://github.com/Altinity/clickhouse-operator/commit/037483707c63366ddd0bc264dc0c03b657713bcdClickhouseKeeperInstallation
resource is created, two (of the three) stateful sets are created at the same time. Once they are both "ready", the 3rd is created. When the 3rd is created, the PVC bound / attached to the 1st stateful set of the keeper goes into a "Terminating" state (and stays that way indefinitely)Delete PVC: ...
log (fromworker-deleter.go:114
of operatorv0.24.0
) indicating the the operator is trying to delete the PVCvolumeClaimTemplate
hasreclaimPolicy: Retain
ClickhouseKeeperInstallation
is deleted, the PVC that was in a "Terminating" state is also deleted; however, the other two remain in place (and stay "Bound")Also note:
podAntiAffinity
is set up withapp
label, but the pod template doesn't include such a label (doesn't prevent the keeper from working, but it's incorrect)