What are the main conponents of Carina and their resposibility?
Carina has three main components: carina-scheduler、carina-controller、carina-node. User can get detailed runtime information by checking each components' logs.
carina-scheduler:all pods using PVC backed by Carina will be scheduled by carina-scheduler.
carina-controller:Watching the events of PVC and creates LogicVolume internally.
carina-node:Managing local disks and watching events of LogicVolume and create local LVM or raw volumes.
Known issue, PV creation may fail if the local disks' performance is really poor.
kubectl get lv
.Once the PV has been created successfully, can the Pod migrate to other nodes.
How to run a pod using an specified PV on one of the nodes?
spec.nodeName
to bypass the scheduler.WaitForFirstConsumer
, user can add one annotation volume.kubernetes.io/selected-node: ${nodeName}
to PVC and then the pod will be scheduled to specified node.How to deal with the PVs if it's node been deleted from K8S cluster?
How to create local disks for testing usage?
for i in $(seq 1 5); do
truncate --size=200G /tmp/disk$i.device && \
losetup -f /tmp/disk$i.device
done
How to simulate local SSD disks?
$ echo 0 > /sys/block/loop0/queue/rotational
$ lsblk -d -o name,rota
NAME ROTA
loop1 1
loop0 0
About bcache of each node.
# install bcache
$ modprobe bcache
$ lsmod | grep bcache
bcache 233472 0
crc64 16384 1 bcache
# When there is no bache module, you need to delete the bcache segment from deploy/kuernetes/csi-carina-node.yaml
# delete loading bcache module in init-container.
# delete bcache diectory in csi-carina-node.yaml
- name: host-bcache
mountPath: /sys/fs/bcache
- name: host-bcache
hostPath:
path: /sys/fs/bcache
Enjoy Carina!
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )