mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
rbd: get default plugin path
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
parent
6d24080851
commit
874f6629fb
@ -65,6 +65,7 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
|
||||||
args:
|
args:
|
||||||
- "--nodeid=$(NODE_ID)"
|
- "--nodeid=$(NODE_ID)"
|
||||||
|
- "--pluginpath={{ .Values.kubeletDir }}/plugins"
|
||||||
- "--type=rbd"
|
- "--type=rbd"
|
||||||
- "--nodeserver=true"
|
- "--nodeserver=true"
|
||||||
- "--pidlimit=-1"
|
- "--pidlimit=-1"
|
||||||
|
@ -48,6 +48,8 @@ const (
|
|||||||
|
|
||||||
// use default namespace if namespace is not set.
|
// use default namespace if namespace is not set.
|
||||||
defaultNS = "default"
|
defaultNS = "default"
|
||||||
|
|
||||||
|
defaultPluginPath = "/var/lib/kubelet/plugins"
|
||||||
)
|
)
|
||||||
|
|
||||||
var conf util.Config
|
var conf util.Config
|
||||||
@ -59,6 +61,7 @@ func init() {
|
|||||||
flag.StringVar(&conf.DriverName, "drivername", "", "name of the driver")
|
flag.StringVar(&conf.DriverName, "drivername", "", "name of the driver")
|
||||||
flag.StringVar(&conf.DriverNamespace, "drivernamespace", defaultNS, "namespace in which driver is deployed")
|
flag.StringVar(&conf.DriverNamespace, "drivernamespace", defaultNS, "namespace in which driver is deployed")
|
||||||
flag.StringVar(&conf.NodeID, "nodeid", "", "node id")
|
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"+
|
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")
|
" instances, when sharing Ceph clusters across CSI instances for provisioning")
|
||||||
flag.IntVar(&conf.PidLimit, "pidlimit", 0, "the PID limit to configure through cgroups")
|
flag.IntVar(&conf.PidLimit, "pidlimit", 0, "the PID limit to configure through cgroups")
|
||||||
|
@ -51,6 +51,7 @@ spec:
|
|||||||
image: quay.io/cephcsi/cephcsi:canary
|
image: quay.io/cephcsi/cephcsi:canary
|
||||||
args:
|
args:
|
||||||
- "--nodeid=$(NODE_ID)"
|
- "--nodeid=$(NODE_ID)"
|
||||||
|
- "--pluginpath=/var/lib/kubelet/plugins"
|
||||||
- "--type=rbd"
|
- "--type=rbd"
|
||||||
- "--nodeserver=true"
|
- "--nodeserver=true"
|
||||||
- "--endpoint=$(CSI_ENDPOINT)"
|
- "--endpoint=$(CSI_ENDPOINT)"
|
||||||
|
Loading…
Reference in New Issue
Block a user