Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 2.44 KB

install.md

File metadata and controls

79 lines (57 loc) · 2.44 KB

Install BizFly Cloud CSI Driver

1. Create secret with your credentials

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

2. Deploy the CSI Plugin

  • 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 and node 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

Volume Snapshot

  1. 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
  1. 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"