Kubeadm feature-gates for CSI


#1

Hi! I will try to setup k8s cluster via kubeadm for developing CSI driver. During init phase '--feature-gates="CSINodeInfo=true,CSIDriverRegistry=true' should be provided. However I’ve got a error:

# kubeadm init --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors Swap --feature-gates="CSINodeInfo=true,CSIDriverRegistry=true"
unrecognized feature-gate key: CSINodeInfo

System info:

# kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:36:44Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
----------------------------------------------
OS - CentOS
# cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)

kubelet - Version: v1.13.1
# docker -v
Docker version 1.13.1, build 07f3374/1.13.1

Does kubeadm support CSINodeInfo and CSIDriverRegistry features?


#2

Kubeadm does have support for all feature-gates via the CLI. You can however supply a config file to kubeadm that includes the desired feature-gates on the components you need.


#3

Thanks a lot, I will try.