架构:
前提条件:
k8s集群版本必须是1.15.x, 1.16.x, 1.17.x, or 1.18.x
必须有默认的storageclass
内存和cpu最低要求:CPU > 1 Core, Memory > 2 G
安装并设置默认storageclass略过,可以看之前的我发过的博客https://www.cnblogs.com/lfl17718347843/p/14131062.html
1.安装yaml文件 (先安装第一个,再安装第二个)
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.0.0/kubesphere-installer.yaml
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.0.0/cluster-configuration.yaml
2.查看安装日志 (其实不看日志也行,只要所有pod都是running状态就行,如果网络慢,可能就慢点。)
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
3.查看所有pod
kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
default nfs-client-provisioner-6d4469b5b5-bh6t9 1/1 Running 0 31m
kube-system coredns-66bff467f8-rkb9n 1/1 Running 0 73m
kube-system coredns-66bff467f8-rtbnt 1/1 Running 0 73m
kube-system etcd-master1 1/1 Running 0