CSI driver for Ceph
Go to file
Niels de Vos 31648c8feb provisioners: add reconfiguring of PID limit
The container runtime CRI-O limits the number of PIDs to 1024 by
default. When many PVCs are requested at the same time, it is possible
for the provisioner to start too many threads (or go routines) and
executing 'rbd' commands can start to fail. In case a go routine can not
get started, the process panics.

The PID limit can be changed by passing an argument to kubelet, but this
will affect all pids running on a host. Changing the parameters to
kubelet is also not a very elegant solution.

Instead, the provisioner pod can change the configuration itself. The
pod is running in privileged mode and can write to /sys/fs/cgroup where
the limit is configured.

With this change, the limit is configured to 'max', just as if there is
no limit at all. The logs of the csi-rbdplugin in the provisioner pod
will reflect the change it makes when starting the service:

    $ oc -n rook-ceph logs -c csi-rbdplugin csi-rbdplugin-provisioner-0
    ..
    I0726 13:59:19.737678       1 cephcsi.go:127] Initial PID limit is set to 1024
    I0726 13:59:19.737746       1 cephcsi.go:136] Reconfigured PID limit to -1 (max)
    ..

It is possible to pass a different limit on the commandline of the
cephcsi executable. The following flag has been added:

    --pidlimit=<int>       the PID limit to configure through cgroups

This accepts special values -1 (max) and 0 (default, do not
reconfigure). Other integers will be the limit that gets configured in
cgroups.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2019-08-13 14:43:29 +00:00
.github Add PR/Issue/Feature templates 2019-05-27 11:43:44 +00:00
cmd provisioners: add reconfiguring of PID limit 2019-08-13 14:43:29 +00:00
deploy provisioners: add reconfiguring of PID limit 2019-08-13 14:43:29 +00:00
docs provisioners: add reconfiguring of PID limit 2019-08-13 14:43:29 +00:00
e2e e2e: do not fail deleting resources when "resource not found" 2019-08-13 12:46:07 +00:00
examples Make parameter pool optional in CephFS storageclass 2019-08-07 13:30:38 +00:00
pkg provisioners: add reconfiguring of PID limit 2019-08-13 14:43:29 +00:00
scripts Enable leader election in v1.14+ 2019-08-05 07:11:44 +00:00
vendor Add recover middleware for grpc server 2019-08-01 11:02:27 +00:00
.gitignore update ceph-csi to build and use a single docker image 2019-05-28 18:10:22 +00:00
.mergify.yml Default to 2 approvals for a patch to get in. 2019-04-04 07:38:02 +00:00
.travis.yml remove work around for golangci-lint installation 2019-07-25 15:03:46 +00:00
deploy.sh update ceph-csi to build and use a single docker image 2019-05-28 18:10:22 +00:00
Gopkg.lock Add recover middleware for grpc server 2019-08-01 11:02:27 +00:00
Gopkg.toml Add recover middleware for grpc server 2019-08-01 11:02:27 +00:00
LICENSE Removing appendix from license. 2019-08-09 15:16:46 +00:00
Makefile Add dep check to the Makefile 2019-07-25 15:03:46 +00:00
README.md docs: Clarify that Nautilus means >=14.2.2 2019-08-07 05:51:24 +00:00

Ceph CSI

Go Report
Card Build
Status

This repo contains Ceph Container Storage Interface (CSI) driver for RBD, CephFS and kubernetes sidecar deployment yamls of provisioner, attacher, node-driver-registrar and snapshotter for supporting CSI functionalities.

Overview

Ceph CSI plugins implement an interface between CSI enabled Container Orchestrator (CO) and Ceph cluster. It allows dynamically provisioning Ceph volumes and attaching them to workloads.

Independent CSI plugins are provided to support RBD and CephFS backed volumes,

  • For details about configuration and deployment of RBD plugin, please refer rbd doc and for CephFS plugin configuration and deployment please refer cephfs doc.
  • For example usage of RBD and CephFS CSI plugins, see examples in examples/.

Project status

Status: GA

Supported CO platforms

Ceph CSI drivers are currently developed and tested exclusively on Kubernetes environments. There is work in progress to make this CO independent and thus support other orchestration environments in the future.

NOTE:

  • csiv0.3 is deprecated with release of csi v1.1.0

Support Matrix

Ceph-CSI features and available versions

Plugin Features Feature Status CSI Driver Version CSI Spec Version Ceph Cluster Version Kubernetes Version
RBD Dynamically provision, de-provision Block mode RWO volume GA >=v1.0.0 >=v1.0.0 >= Mimic >= v1.13.0
Dynamically provision, de-provision Block mode RWX volume GA >=v1.0.0 >=v1.0.0 >= Mimic >= v1.13.0
Dynamically provision, de-provision File mode RWO volume GA >=v1.0.0 >=v1.0.0 >= Mimic >= v1.13.0
Creating and deleting snapshot Alpha >=v1.0.0 >=v1.0.0 >= Mimic >= v1.13.0
Provision volume from snapshot Alpha >=v1.0.0 >=v1.0.0 >= Mimic >= v1.13.0
Provision volume from another volume - - - - -
Resize volume - - - - -
Metrics Support - - - - -
CephFS Dynamically provision, de-provision File mode RWO volume Alpha >=v1.1.0 >=v1.0.0 Nautilus (>=14.2.2) >=v1.13.0
Dynamically provision, de-provision File mode RWX volume Alpha >=v1.1.0 >=v1.0.0 Nautilus (>=v14.2.2) >=v1.13.0
Creating and deleting snapshot - - - - -
Provision volume from snapshot - - - - -
Provision volume from another volume - - - - -
Resize volume - - - - -
Metrics - - - - -

NOTE: The Alpha status reflects possible non-backward compatible changes in the future, and is thus not recommended for production use.

CSI spec and Kubernetes version compatibility

Please refer to the matrix in the Kubernetes documentation.

Contributing to this repo

Please follow development-guide and coding style guidelines if you are interested to contribute to this repo.

Troubleshooting

Please submit an issue at: Issues

Weekly Bug Triage call

We conduct weekly bug triage calls at our slack channel on Tuesdays. More details are available here

Contact

Please use the following to reach members of the community: