Kubesphere 安装
Migrate from GitHub to jsDelivr
https://www.jsdelivr.com/github
yum 镜像源修改
centos镜像_centos下载地址_centos安装教程-阿里巴巴开源镜像站 https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b116cz6iL
阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区 https://developer.aliyun.com/mirror/
docker 安装
systemctl enable docker --now
docker 加速
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://kfjx0hom.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
Kubekey 下载
在 Linux 上以 All-in-One 模式安装 KubeSphere
https://kubesphere.io/zh/docs/v3.3/quick-start/all-in-one-on-linux/
安装包准备下载
mkdir /opt/kubesphere
cd /opt/kubesphere
wget https://frankfeekr.cn-sh2.ufileos.com/kubekey-v3.0.3-linux-amd64.tar.gz
tar zxvf kubekey-v3.0.3-linux-amd64.tar.gz
rm kubekey-v3.0.3-linux-amd64.tar.gz -rf
cd /opt/kubesphere
wget https://frankfeekr.cn-sh2.ufileos.com/kubekey.tar.gz
tar zxvf kubekey.tar.gz
chmod +x kk
cd /opt/kubesphere
wget https://frankfeekr.cn-sh2.ufileos.com/kubekey.zip
unzip kubekey.zip
安装 kubesphere
设置 Region
export KKZONE=cn
安装依赖
22:45:28 CST [ERRO] localhost.localdomain: conntrack is required.
22:45:28 CST [ERRO] localhost.localdomain: socat is required.
yum install conntrack -y
yum install socat -y
<<<<<<< HEAD
安装集群
安装集群
./kk create cluster --with-kubernetes v1.22.12 --with-kubesphere v3.3.1 -y
验证安装结果
821397d671ff0b1ed25bc64407f4f587b4530f9d
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f
开启 ServiceMesh
KubeSphere 服务网格 https://kubesphere.io/zh/docs/v3.3/pluggable-components/service-mesh/
servicemesh
servicemesh:
enabled: true # 将“false”更改为“true”。
istio: # Customizing the istio installation configuration, refer to https://istio.io/latest/docs/setup/additional-setup/customize-installation/
components:
ingressGateways:
- name: istio-ingressgateway # 将服务暴露至服务网格之外。默认不开启。
enabled: false
cni:
enabled: false # 启用后,会在 Kubernetes pod 生命周期的网络设置阶段完成 Istio 网格的 pod 流量转发设置工作。
查看安装结果
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f
logging
logging:
enabled: true # 将“false”更改为“true”。
containerruntime: docker
查看安装结果
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f