rbd: get default plugin path

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2021-05-31 16:41:01 +05:30 committed by mergify[bot]
parent 6d24080851
commit 874f6629fb
3 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,7 @@ spec:
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
args:
- "--nodeid=$(NODE_ID)"
- "--pluginpath={{ .Values.kubeletDir }}/plugins"
- "--type=rbd"
- "--nodeserver=true"
- "--pidlimit=-1"

View File

@ -48,6 +48,8 @@ const (
// use default namespace if namespace is not set.
defaultNS = "default"
defaultPluginPath = "/var/lib/kubelet/plugins"
)
var conf util.Config
@ -59,6 +61,7 @@ func init() {
flag.StringVar(&conf.DriverName, "drivername", "", "name of the driver")
flag.StringVar(&conf.DriverNamespace, "drivernamespace", defaultNS, "namespace in which driver is deployed")
flag.StringVar(&conf.NodeID, "nodeid", "", "node id")
flag.StringVar(&conf.PluginPath, "pluginpath", defaultPluginPath, "plugin path")
flag.StringVar(&conf.InstanceID, "instanceid", "", "Unique ID distinguishing this instance of Ceph CSI among other"+
" instances, when sharing Ceph clusters across CSI instances for provisioning")
flag.IntVar(&conf.PidLimit, "pidlimit", 0, "the PID limit to configure through cgroups")

View File

@ -51,6 +51,7 @@ spec:
image: quay.io/cephcsi/cephcsi:canary
args:
- "--nodeid=$(NODE_ID)"
- "--pluginpath=/var/lib/kubelet/plugins"
- "--type=rbd"
- "--nodeserver=true"
- "--endpoint=$(CSI_ENDPOINT)"