




















Review the Rook v1.19 release notes for any breaking changes. Key checks before upgrading:
ceph status should show HEALTH_OK.kubectl -n rook-ceph exec -it <toolbox-pod> -- ceph status
kubectl -n rook-ceph get deployments rook-ceph-operator \
-o jsonpath='{.spec.template.spec.containers[0].image}'If Rook was installed with Helm, update the chart and upgrade:
helm repo update
helm upgrade rook-ceph rook-release/rook-ceph \
--namespace rook-ceph \
--version 1.19.0Check that the operator pod is replaced:
kubectl -n rook-ceph get pods -l app=rook-ceph-operatorDownload the v1.19 manifests from the Rook repository:
curl -O https://raw.githubusercontent.com/rook/rook/v1.19.0/deploy/examples/crds.yaml
curl -O https://raw.githubusercontent.com/rook/rook/v1.19.0/deploy/examples/common.yaml
curl -O https://raw.githubusercontent.com/rook/rook/v1.19.0/deploy/examples/operator.yamlApply the CRD updates first:
kubectl apply -f crds.yamlApply common resources (RBAC, service accounts):
kubectl apply -f common.yamlUpdate the operator deployment:
kubectl apply -f operator.yamlWatch the operator restart:
kubectl -n rook-ceph rollout status deployment/rook-ceph-operatorConfirm the operator image version:
kubectl -n rook-ceph get deployment rook-ceph-operator \
-o jsonpath='{.spec.template.spec.containers[0].image}'Expected output should contain v1.19.0.
The operator upgrade alone does not change the running Ceph version. After the operator is running on v1.19, you can trigger a Ceph version upgrade by patching the CephCluster image:
kubectl -n rook-ceph patch cephcluster rook-ceph \
--type merge \
-p '{"spec":{"cephVersion":{"image":"quay.io/ceph/ceph:v19.2.0"}}}'Monitor the rolling upgrade of OSDs, monitors, and managers:
kubectl -n rook-ceph get pods -wWatch the cluster health throughout the process:
watch kubectl -n rook-ceph exec <toolbox-pod> -- ceph statusIt is normal for health to temporarily show HEALTH_WARN during an OSD rolling restart. Wait for it to return to HEALTH_OK before proceeding.
If you need to roll back the operator, re-apply the v1.18 manifests. The operator manages the cluster but does not change on-disk Ceph data structures, so a rollback is generally safe as long as the Ceph version itself was not upgraded.
Upgrading Rook from v1.18 to v1.19 follows a clear sequence: verify cluster health, apply updated CRDs and RBAC, then update the operator deployment. The Ceph daemons continue running during the operator upgrade. After confirming the new operator is healthy, optionally update the Ceph version by patching the CephCluster spec.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。