Skip to content

baidubce/baiducloud-cce-csi-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baidu Cloud CSI Plugin

English | 简体中文

Introduction

Baidu Cloud CSI plugins implement an interface between CSI enabled Container Orchestrator and Baidu Cloud Storage.

Features

CDS Driver

The following CSI gRPC calls are implemented:

  • Controller Service: CreateVolume, DeleteVolume, ControllerPublishVolume, ControllerUnpublishVolume, ControllerGetCapabilities, ValidateVolumeCapabilities
  • Node Service: NodeStageVolume, NodeUnstageVolume, NodePublishVolume, NodeUnpublishVolume, NodeGetCapabilities, NodeGetInfo
  • Identity Service: GetPluginInfo, GetPluginCapabilities, Probe

Features:

  • Static Provisioning - create persistence volume (PV) from the existing CDS volume and consume the PV from container using persistence volume claim (PVC).
  • Dynamic Provisioning - uses persistence volume claim (PVC) to request the Kuberenetes to create the CDS volume on behalf of user and consumes the volume from inside container.
  • Mount Option - mount options could be specified in persistence volume (PV) to define how the volume should be mounted.
  • Block Volume - consumes the CDS volume as a raw block device for latency sensitive application. The corresponding CSI feature (CSIBlockVolume) is GA since Kubernetes 1.18.

BOS Driver

The following CSI gRPC calls are implemented:

  • Node Service: NodePublishVolume, NodeUnpublishVolume, NodeGetCapabilities, NodeGetInfo
  • Identity Service: GetPluginInfo, GetPluginCapabilities, Probe

Features:

  • Static Provisioning - create persistence volume (PV) from the existing BOS bucket and consume the PV from container using persistence volume claim (PVC).
  • Mount Option - mount options could be specified in persistence volume (PV) to define how the bosfs should be run.

Getting Started

These instructions will get you a copy of the project up and running on your environment for development and testing purposes. See installing for notes on how to deploy the project on a Baidu Cloud CCE cluster.

Prerequisites

A health CCE kubernetes cluster. See documents for creating a CCE cluster.

Installing

Prerequisite: Helm

Please read the values.yaml before installation and modify it when needed.

Install CSI CDSPlugin

helm upgrade --install csi-cdsplugin ./deploy/helm/cds -f ./deploy/helm/cds/values.yaml

Install CSI BOSPlugin

helm upgrade --install csi-bosplugin ./deploy/helm/bos -f ./deploy/helm/bos/values.yaml

Running the tests

Unit Test

make test

Contributing

Please go through CSI Spec and General CSI driver development guideline to get some basic understanding of CSI driver before you start.

Requirements

  • Golang 1.18.+
  • Docker 17.05+ for releasing

Dependency

Dependencies are managed through go module.

Build

To build the project, first turn on go mod using export GO111MODULE=on, then build the docker image using: make image-all.

Issues

  • Please create an issue in issue list.
  • Contact Committers/Owners for further discussion if needed.

Authors

Discussion

  • Issue list.
  • Ruliu Group ID: 1586317

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages