环境 系统环境 OS: openEuler 24.03 (LTS) 用户: root下 预部署K8s版本:v1.32.7 部署工具:kubekey 版本4.0.3 主机信息 主机名 IP 说明 k8s-master01 192.168.20.161 控制节点+工作节点+etcd k8s-master02 192.168.20.162 控制节点+工作节点+etcd k8s-master03 192.168.20.163 控制节点+工作节点+etcd k8s-node1 192.168.20.164 工作节点 k8s-node2 192.168.20.165 工作节点 配置 关闭selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config 关闭防火墙 systemctl stop firewalld systemctl disable firewalld 安装依赖 yum update yum install epel-release -y yum install
测试环境 openEuler 22.03 (LTS-SP4) 8核20G 120G 1、安装helm # 下载并运行官方安装脚本(需提前安装tar) curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh sudo ./get_helm.sh # 验证安装 helm version # 输出: version.BuildInfo{Version:"v3.12.3", ...} # 添加国内镜像仓库(如阿里云) helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts # 添加dify仓库 helm repo add dify https://langgenius.github.io/dify-helm # 更新仓库 helm repo update 2、k3s部署 curl -sfL https://get.k3
admin