Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 3.12 KB

sfsturbo.md

File metadata and controls

76 lines (51 loc) · 3.12 KB

Huawei Cloud SFS Turbo CSI Driver

The SFS Turbo CSI Driver is a CSI Specification compliant driver used by Container Orchestrators to manage the lifecycle of Huawei Cloud SFS Turbo Shares.

Compatibility

For sidecar version compatibility, please refer compatibility matrix for each sidecar here -https://kubernetes-csi.github.io/docs/sidecar-containers.html.

Support version

SFS Turbo CSI Driver Version CSI version Kubernetes Version Tested Features
v0.1.1 v1.5.0 v1.20 v1.21 v1.22 v1.23 shares
v0.1.3 v1.5.0 v1.20 v1.21 v1.22 v1.23

Supported Parameters

  • shareType Required. Should be STANDARD or PERFORMANCE in SFS Turbo. It is located under parameters.

  • availability Optional. Availability Zone(AZ) of the share. It is located under parameters.

Deploy

Prerequisites

  • Kubernetes cluster

Steps

  • Create the config file

Create the cloud-config file according to cloud-config in master node or control-plane, see Description of cloud config for configurations description.

See IAM Policies for SFS Turbo CSI for IAM policies.

Use the following command create cloud-config secret:

kubectl create secret -n kube-system generic cloud-config --from-file=/etc/sfsturbo/cloud-config
  • Create RBAC resources
kubectl apply -f https://raw.githubusercontent.com/huaweicloud/huaweicloud-csi-driver/master/deploy/sfsturbo-csi-plugin/kubernetes/rbac-csi-sfsturbo-controller.yaml
kubectl apply -f https://raw.githubusercontent.com/huaweicloud/huaweicloud-csi-driver/master/deploy/sfsturbo-csi-plugin/kubernetes/rbac-csi-sfsturbo-node.yaml
kubectl apply -f https://raw.githubusercontent.com/huaweicloud/huaweicloud-csi-driver/master/deploy/sfsturbo-csi-plugin/kubernetes/rbac-csi-sfsturbo-secret.yaml
  • Install HuaweiCloud EVS CSI Driver
kubectl apply -f https://raw.githubusercontent.com/huaweicloud/huaweicloud-csi-driver/master/deploy/sfsturbo-csi-plugin/kubernetes/csi-sfsturbo-driver.yaml
kubectl apply -f https://raw.githubusercontent.com/huaweicloud/huaweicloud-csi-driver/master/deploy/sfsturbo-csi-plugin/kubernetes/csi-sfsturbo-controller.yaml
kubectl apply -f https://raw.githubusercontent.com/huaweicloud/huaweicloud-csi-driver/master/deploy/sfsturbo-csi-plugin/kubernetes/csi-sfsturbo-node.yaml
  • Waiting for all the pods in running
# kubectl get all -A
NAMESPACE      NAME                                           READY   STATUS    RESTARTS       AGE
...
kube-system    pod/csi-sfsturbo-controller-56fcfbf7dc-r55n5   5/5     Running   0              5h33m
kube-system    pod/csi-sfsturbo-node-mwg6j                    3/3     Running   0              5h33m

Examples