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.
For sidecar version compatibility, please refer compatibility matrix for each sidecar here -https://kubernetes-csi.github.io/docs/sidecar-containers.html.
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 |
-
shareType
Required. Should beSTANDARD
orPERFORMANCE
in SFS Turbo. It is located underparameters
. -
availability
Optional. Availability Zone(AZ) of the share. It is located underparameters
.
- Kubernetes cluster
- 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