How to add flag to kubelet

前端 未结 2 914
不思量自难忘°
不思量自难忘° 2021-01-27 00:04

I want to deploy rook for kubernetes. I use 1 master and 3 worker and the host is ubuntu in baremetal. but the container stuck in creating container. after a lot of search i und

2条回答
  •  不要未来只要你来
    2021-01-27 00:23

    @yasin lachini,
    If you deploy kubernetes cluster on baremetal, you don't need to configure anything. That is because /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ is the kubelet default FlexVolume path and Rook assumes the default FlexVolume path if not set differently.

    My env:
    rook-ceph/operator.yml (use default FLEXVOLUME_DIR_PATH) :

    ...
            # Set the path where the Rook agent can find the flex volumes
            # - name: FLEXVOLUME_DIR_PATH
            #   value: "/usr/libexec/kubernetes/kubelet-plugins/volume/exec"
    ...
    

    After deploy,on node:

    # ls /usr/libexec/kubernetes/kubelet-plugins/volume/exec/
    ceph.rook.io~rook  ceph.rook.io~rook-ceph-system  rook.io~rook  rook.io~rook-ceph-system
    

提交回复
热议问题