Note: Skip this step if you are already installed BizFly Cloud Controller Manager
Replace the credentials in the manifest/plugin/secret.yaml
as bellow:
apiVersion: v1
kind: Secret
metadata:
name: bizflycloud
namespace: kube-system
stringData:
application_credential_id: "your_application_credential_id"
application_credential_secret: "your_application_credential_secret"
tenant_id: "your_tenant_id"
region: "your_region" # HN, HCM
Create Secret in kube-system
namespace
kubectl apply -f manifest/plugin/secret.yaml
- Create a new CSI Driver
kubectl apply -f https://raw.githubusercontent.com/bizflycloud/csi-bizflycloud/master/manifest/plugin/csi-driver.yaml
- Add RBAC for
controller plugin
andnode plugin
kubectl apply -f https://raw.githubusercontent.com/bizflycloud/csi-bizflycloud/master/manifest/plugin/csi-bizflycloud-controllerplugin-rbac.yaml
kubectl apply -f https://raw.githubusercontent.com/bizflycloud/csi-bizflycloud/master/manifest/plugin/csi-bizflycloud-nodeplugin-rbac.yaml
- Install CSI Statefulset and Daemonset
kubectl apply -f https://raw.githubusercontent.com/bizflycloud/csi-bizflycloud/master/manifest/plugin/csi-bizflycloud-controllerplugin.yaml
kubectl apply -f https://raw.githubusercontent.com/bizflycloud/csi-bizflycloud/master/manifest/plugin/csi-bizflycloud-nodeplugin.yaml
- CRDs is required to enable VolumeSnapshot
Beta VolumeSnapshot since Kubernetes v1.17
kubectl apply -f https://raw.githubusercontent.com/bizflycloud/csi-bizflycloud/master/manifest/v1beta1_volumesnapshot_crds.yaml
GA VolumeSnapshot since Kubernetes v1.20
kubectl apply -f https://raw.githubusercontent.com/bizflycloud/csi-bizflycloud/master/manifest/v1_volumesnapshot_crds.yaml
- VolumeSnapshotClass
# apiVersion: snapshot.storage.k8s.io/v1beta1
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: bizflycloud
driver: volume.csi.bizflycloud.vn
deletionPolicy: Delete
parameters:
force-create: "true"