Install a pure k8s cluster as the installer guide
Install csi , such as csi-qingcloud:
- use helm to install
helm repo add test https://charts.kubesphere.io/test
# replace your key/secret and zone(or region)
helm install test/csi-qingcloud --name-template csi-qingcloud --namespace kube-system --set config.qy_access_key_id=xxx,config.qy_secret_access_key=xxx,config.zone=ap2a,sc.enable=true,sc.type=0,driver.tag=v1.2.0-rc.4
verify the csi
# kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
csi-qingcloud disk.csi.qingcloud.com Delete Immediate true 36m
- modify it to default sc
# kubectl edit sc csi-qingcloud
...
metadata
annotations:
storageclass.kubernetes.io/is-default-class: "true"
...
# kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
csi-qingcloud (default) disk.csi.qingcloud.com Delete Immediate true
- install kubesphere using default sc
kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/deploy/kubesphere-installer.yaml
# If you use muti etcd nodes, you should down this yaml locally, and modify the etcd addresses.
# Also you can switch plugins on
kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/deploy/cluster-configuration.yaml