rook/ceph
Upgrading rook
Follow the most recent docs corresponding the the version being upgraded to.
It's important to also use the template for the 2nd cluster for all additional ceph clusters (there are 5+ deployed). Remove all the PSP stuff from it.
cd deploy/examples
export ROOK_OPERATOR_NAMESPACE=rook-system
export ROOK_CLUSTER_NAMESPACE=rook
sed -i.bak \
-e "s/\(.*\):.*# namespace:operator/\1: $ROOK_OPERATOR_NAMESPACE # namespace:operator/g" \
-e "s/\(.*\):.*# namespace:cluster/\1: $ROOK_CLUSTER_NAMESPACE # namespace:cluster/g" \
common.yaml
Delete all related to PSP from common-second-cluster.yaml
mkdir clusters
export ROOK_OPERATOR_NAMESPACE="rook-system"
for SECOND_ROOK_CLUSTER_NAMESPACE in rook-central rook-haosu rook-east rook-pacific rook-south-east rook-tide; do
sed \
-e "s/\(.*\):.*# namespace:operator/\1: $ROOK_OPERATOR_NAMESPACE # namespace:operator/g" \
-e "s/\(.*\):.*# namespace:cluster/\1: $SECOND_ROOK_CLUSTER_NAMESPACE # namespace:cluster/g" \
common-second-cluster.yaml > clusters/$SECOND_ROOK_CLUSTER_NAMESPACE.yaml
; done
cp common.yaml clusters/
kubectl diff -f clusters
Fix rook-ceph-mgr-system-secondary
stuff
see if changes make sense, then follow the guide:
... other commands from the guide
fix toolbox pods
Upgrading ceph
Before upgrading the major version, make sure the OS and kernel support it