https://rancher.com/ logo
Title
b

billions-kite-9416

07/28/2022, 10:56 AM
I am trying to enable a new
feature gate
on my api server. After editing the
config.yaml
file and restarting the
rke2-server
process the api server never comes back up and there are
500 Internal Server Errors
from kube-proxy in the logs. Does anyone have any idea how to go about this?
g

gentle-eye-36337

07/28/2022, 7:39 PM
I am also attempting to figure out how to enable
feature gate
on RKE2. I have looked at https://rancher.com/docs/rancher/v2.6/en/cluster-admin/editing-clusters/rke2-config-reference/ which leads to https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/
--feature-gates <A list of 'key=true/false' pairs>
...
(DEPRECATED: This parameter should be set via the config file specified by the Kubelet's
--config
flag. See kubelet-config-file for more information.)
I have tried a few ways to add, but all the ways I would add to rke do not seem to be there. I used to be able to add via API. Wanting to add to test out linstor-csi
You will need to enable the following feature gates on both the kube-apiserver and all kubelets for this plugin to be operational:
CSINodeInfo=true
,
CSIDriverRegistry=true,VolumeSnapshotDataSource=true
. Please ensure that your version of Kubernetes is recent enough to enable these gates.
Other Doc: https://linbit.com/blog/linstor-csi-plugin-for-kubernetes/ Any know how to enable feature flags on RKE2 though Rancher?
Opened issue, as it does not look like this is supported yet. At least I have not been able to find any reference in Rancher or RKE2 docs https://github.com/rancher/rke2/issues/3193
b

billions-kite-9416

07/28/2022, 7:57 PM
Yeah it was a similar problem for me with trying to install the
AWS EBS CSI Driver
. I found this issue https://github.com/rancher/rke2/issues/3145 in the end I tried without the feature gates and the driver worked anyways. If you are on a test cluster you can attempt to install the CSI plugin without enabling those feature gates.
g

gentle-eye-36337

07/28/2022, 9:00 PM
Yeah that is what I did, I found that the flags are all GA anyway lol