Difference between revisions of "Rook ceph"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | # Microk8s | ||
+ | ``` | ||
+ | microk8s addons repo update core | ||
+ | |||
+ | ``` | ||
+ | |||
+ | |||
# Uninstalling - note finalizer change | # Uninstalling - note finalizer change | ||
- https://rook.io/docs/rook/v1.12/Getting-Started/ceph-teardown/#troubleshooting | - https://rook.io/docs/rook/v1.12/Getting-Started/ceph-teardown/#troubleshooting |
Revision as of 21:59, 22 November 2023
Microk8s
microk8s addons repo update core
Uninstalling - note finalizer change
helm -n rook-ceph uninstall rook-ceph-cluster helm -n rook-ceph uninstall rook-ceph for CRD in $(kubectl get crd -n rook-ceph | awk '/ceph.rook.io/ {print $1}'); do kubectl get -n rook-ceph "$CRD" -o name | xargs -I {} kubectl patch -n rook-ceph {} --type merge -p '{"metadata":{"finalizers": []}}'; done
Install
helm upgrade --install --namespace rook-ceph rook-ceph rook-release/rook-ceph --set csi.kubeletDirPath="/var/snap/microk8s/common/var/lib/kubelet/"
helm upgrade --install --namespace rook-ceph rook-ceph-cluster \ --set operatorNamespace=rook-ceph rook-release/rook-ceph-cluster --set cephBlockPoolsVolumeSnapshotClass.enabled="true" \ --set-string cephBlockPoolsVolumeSnapshotClass.labels."velero\.io/csi-volumesnapshot-class=true"
Bump CPU
host=k8s1; lxc stop $host --force; lxc config set $host limits.cpu=16 limits.memory=32GB; lxc start $host
https://rook.io/v1.11/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/
https://github.com/ceph/ceph-csi/blob/devel/docs/snap-clone.md#create-rbd-snapshot-and-clone-volume
Add label to snapshot class
https://velero.io/docs/main/csi/
kubectl edit volumesnapshotclass ceph-block
add label
velero.io/csi-volumesnapshot-class: "true"