Hetzner Cloud CSI driver activation on Rancher 2.2

Hello,

I am doing test with Rancher 2.2 and Hetzner Cloud so far deployment works fine, but I am trying to enable Hetzner Cloud Volumes support too using the CSI driver from here:

I read that I need to enable following features:

–feature-gates=CSINodeInfo=true,CSIDriverRegistry=true

Can you tell me how I can do this (thru UI or CLI) for Rancher cluster thru itself so I can enable monitoring with persistent data and how do to it for each new cluster that I create?

I have Rancher 2.2 with HA mode (3 nodes).

A step by step guide is welcome :slightly_smiling_face:

Thank you in advance!

Best regards,
Ali

Modifying args/binds/env vars is described under https://rancher.com/docs/rancher/v2.x/en/faq/technical/#how-can-i-add-additional-arguments-binds-environment-variables-to-kubernetes-components-in-a-rancher-launched-kubernetes-cluster

Thanks a lot :slight_smile:

I am going to check the page and continue with tests :slight_smile:

Regards,
Ali Nebi

I was able to activate the feature gates successfully thru API sending in json format:

{
  "services": {
    "kube-api": {
      "extra_args": {
        "feature-gates": "CSINodeInfo=true,CSIDriverRegistry=true"
      }
    },
    "kubelet": {
      "extra_args": {
        "feature-gates": "CSINodeInfo=true,CSIDriverRegistry=true"
      }
    }
  }
}

and RKE solution:

services:
  etcd:
    snapshot: true
    creation: 6h
    retention: 24h
  kube-api: 
    extra_args: 
      feature-gates: "CSINodeInfo=true,CSIDriverRegistry=true"
  kubelet: 
    extra_args:
      feature-gates: "CSINodeInfo=true,CSIDriverRegistry=true"

I hope that this will be useful for someone else too.

Thanks again and regards,
Ali Nebi

2 Likes

Thank you for providing your solution!

I edited my Cluster via the Rancher UI “Edit as YAML” which worked great for me.