-
Notifications
You must be signed in to change notification settings - Fork 820
在 kubesphere 上搭建 cube studio
栾鹏 edited this page Sep 5, 2022
·
8 revisions
注意:机器最低规格为:8C16G ;kubectl 版本要1.24 ;之前安装过 KS 要提前清理下环境。
-
下载 KubeKey
export KKZONE=cn curl -sfL https://get-kk.kubesphere.io | VERSION=v2.2.1 sh -
-
如果机器上之前安装过 KubeSphere 或者 KubeSphere 版本太高 , 先卸载 KubeSphere,k8s 版本太高有问题,会导致部分 CRD 不能安装
./kk delete cluster-
清理 kubeconfig,不然会导致其他 node 节点 无法使用 kubectl
rm -rf /root/.kube/config
-
安装 1.20 版本的 k8s
./kk create cluster --with-kubernetes v1.20.10 --with-kubesphere v3.3.0
详细安装步骤可以参考 KubeSphere 官方文档
-
下载 cube-studio 源码
git clone https://github.com/tencentmusic/cube-studio.git
-
安装
将k8s集群的 kubeconfig 文件复制到 install/kubernetes/config 文件中,然后执行如下命令,其中xx.xx.xx.xx为机器内网的ip
cp $HOME/.kube/config install/kubernetes/config # 在k8s worker机器上执行 sh start.sh xx.xx.xx.xx
- PV 与 PVC 未绑定
kubectl get pv infra-mysql-pv 查看PV状态,如果未绑定添加 storageClassName: local等字段
kubectl edit pv infra-mysql-pv
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: infra-mysql-pvc
namespace: infra
storageClassName: local打标签
kubectl label node worker-1 gpu=true gpu-type=V100 --overwrite
How to install and use VMware Harbor private registry with Kubernetes
Pull an Image from a Private Registry
在 部署好的 Harbor 中添加 HTTPS 证书配置
x509: cannot validate certificate for 10.30.0.163 because it doesn't contain any IP SANs
最后 Docker login $harborIP,就可以 docker pull 拉取服务。