KubeSphere 安装
KubeSphere | Stopping if default StorageClass was not found
local-storage.yaml
- https://kubesphere.com.cn/forum/d/3705-kubernetes-stop-if-storageclass-was-not-found
- https://github.com/kubesphere/kubesphere/issues/4558
- https://kubesphere.com.cn/forum/d/7194-kubekeyk8skubesphere-default-storageclass-was-not-found
- https://blog.imdst.com/kubernetesshang-an-zhuang-kubesphere/
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
annotations:
storageclass.kubernetes.io/is-default-class: "true"
name: local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
kubectl apply -f https://mirror.ghproxy.com/https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/kubesphere-installer.yaml
kubectl apply -f https://mirror.ghproxy.com/https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/cluster-configuration.yaml
kubectl get svc/ks-console -n kubesphere-system
ssh -L 30880:10.100.128.134:30880 -p 10088 root@10.90.100.19
ssh -L 30880:localhost:30880 -p 10088 root@10.90.100.19
OpenEBS Local PV Hostpath User Guide
https://openebs.io/docs/user-guides/localpv-hostpath
helm repo add openebs https://openebs.github.io/charts
helm repo update
helm install --namespace openebs --name openebs openebs/openebs
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-hostpath
annotations:
openebs.io/cas-type: local
cas.openebs.io/config: |
- name: StorageType
value: hostpath
- name: BasePath
value: /var/local-hostpath
provisioner: openebs.io/local
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer