KubeSphere 安装

2022-07-01
1分钟阅读时长

KubeSphere | Stopping if default StorageClass was not found

local-storage.yaml

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

关注公众号获得更多精彩文章

公众号:程序员大兵