[SOLVED] Rancher-agent kubelet extra_binds

Hi,

I’m running a Rancher deployed Kubernetes cluster on RancherOS using Rancher Agent.
Now I’m trying to add Ceph RBD. But for that to work I need kubelet to have extra_binds

services:
  kubelet:
    extra_binds:
      - "/lib/modules:/lib/modules"
      - "/etc/ceph:/etc/ceph"
      - "/usr/sbin/modprobe:/usr/sbin/modprobe"

Anyone knows how I can add these extra binds to a rancher-agent provisioned k8 cluster?

To answer my own question for future reference.
It was possible to edit existing cluster in Rancher:

  1. Top left corner in UI, select your cluster.
  2. In your cluster Dashboard press the vertical ... and Edit.
  3. Edit as YAML.
  4. Under
services: 
  kubelet: 

add following:

    extra_binds: 
      - "/lib/modules:/lib/modules"
      - "/usr/sbin/modprobe:/usr/sbin/modprobe"

i.e. you need to omit /etc/ceph cause it seems to already be mounted by some automagicness.

  1. Press save, and cluster will redeploy and after that you can use Ceph RBD.

Hi @Raboo ,

I’m trying to do the same, so reconfigure kubelet with extra_binds, but unfortunately without success. In Rancher UI when I edited yaml of my cluster, specified that option, but after applying it returned some warning.

I was able to kubectl edit clusters.management.cattle.io/c-8rw5t, but rancher didn’t update anything after it. Is it a way to force such update?

Rancher 2.6.1