kubesphere-v4.1.2离线安装
kubesphere-v4.1.2离线安装网上已经有很多安装部署kubesphere的安装部署教程了我这主要是提供一套安装包离线安装包链接我放到文章末尾了,安装包比较大。自己做的离线安装包亲测有效。1. 操作系统操作系统ubuntu22.04 、centos7.8、centos7.92.下载部署资料需要的文件如下上传到服务器 config-sample.yaml create_project_harbor.sh helm-v3.15.0-linux-amd64.tar.gz kk ks-core-1.1.3.tgz kubesphere-v412-v1306-artifact.tar.gz3.根据实际情况修改配置文件config-sample.yaml是安装配置文件需要根据实际情况修改特别注意etcd节点与registry节点不能是同一个节点否则会报错 apiVersion: kubekey.kubesphere.io/v1alpha2 kind: Cluster metadata: name: sample spec: hosts: - {name: registry, address: 192.168.15.122, internalAddress: 192.168.15.122, user: root, password: xxx} - {name: master, address: 192.168.15.127, internalAddress: 192.168.15.127, user: root, password: xxx} - {name: node2, address: 192.168.15.137, internalAddress: 192.168.15.137, user: root, password: xxx} roleGroups: etcd: - master control-plane: - master worker: - node2 registry: - registry controlPlaneEndpoint: ## Internal loadbalancer for apiservers # internalLoadbalancer: haproxy domain: lb.kubesphere.local address: port: 6443 kubernetes: version: v1.26.12 containerManager: containerd #containerManager: docker #选择容器类型 network: plugin: calico kubePodsCIDR: 10.233.64.0/18 kubeServiceCIDR: 10.233.0.0/18 ## multus support. https://github.com/k8snetworkplumbingwg/multus-cni multusCNI: enabled: false registry: # 如需使用 kk 部署 harbor, 可将该参数设置为 harbor不设置该参数且需使用 kk 创建容器镜像仓库将默认使用 docker registry。 type: harbor # 如使用 kk 部署的 harbor 或其他需要登录的仓库需设置对应仓库的 auths如使用 kk 创建默认的 docker registry 仓库则无需配置 auths 参数。 auths: dockerhub.kubekey.local: username: admin password: Harbor12345 skipTLSVerify: true privateRegistry: dockerhub.kubekey.local namespaceOverride: kubesphereio registryMirrors: [] insecureRegistries: [] addons: []修改host要安装的机器列表配置在这里修改groupgroup中分了etcd、control panel、worker、registry等根据实际情况修改配置registry要安装harbor的话需要配置集群内部域名指向harbor还有账号密码也需要配置4.创建镜像仓库需要registry节点上80端口未占用然后执行如下命令./kk init registry -f config-sample.yaml -a kubesphere-v412-v1306-artifact.tar.gz如果显示如下信息则表明镜像仓库创建成功。Pipeline[InitRegistryPipeline] execute successfully创建harbor项目编辑create_project_harbor.sh添加一个值kubesphereio然后执行./create_project_harbor.sh5.安装Kubernetes./kk create cluster -f config-sample.yaml -a kubesphere-v412-v1306-artifact.tar.gz --with-local-storage #安装的时候可能服务器会缺一些依赖手动安装一下就OK了1.指定 --with-local-storage 参数会默认部署 openebs localpv如需对接其他存储可在 Kubernetes 集群部署完成后自行安装。2.如果显示如下信息则表明 Kubernetes 集群创建成功。Pipeline[CreateclusterPipeline] execute successfullyInstallation is complete.6.安装helmtar -zxvf helm-v3.15.0-linux-amd64.tar.gz sudo mv linux-amd64/helm /usr/local/bin/helm7. 安装KubeSphere安装kubesphere需要在master节点操作。helm upgrade --install -n kubesphere-system --create-namespace ks-core ks-core-1.1.3.tgz \ --set global.imageRegistrydockerhub.kubekey.local/ks \ --set extension.imageRegistrydockerhub.kubekey.local/ks \ --set ksExtensionRepository.image.tagv1.1.2 \ --set ha.enabledtrue,redisHA.enabledtrue \ --debug \ --wait ksExtensionRepository.image.tag 为之前获取到的 Extensions Museum 版本即 https://get-images.kubesphere.io/ 上展示的最新扩展组件仓库版本。 如需高可用部署 KubeSphere可在命令中添加 --set ha.enabledtrue,redisHA.enabledtrue如果显示如下信息则表明 KubeSphere 安装成功NOTES: Thank you for choosing KubeSphere Helm Chart. Please be patient and wait for several seconds for the KubeSphere deployment to complete. 1. Wait for Deployment Completion Confirm that all KubeSphere components are running by executing the following command: kubectl get pods -n kubesphere-system 2. Access the KubeSphere Console Once the deployment is complete, you can access the KubeSphere console using the following URL: http://192.168.6.6:30880 3. Login to KubeSphere Console Use the following credentials to log in: Account: admin Password: P88w0rd NOTE: It is highly recommended to change the default password immediately after the first login. For additional information and details, please visit https://kubesphere.io.提示信息中包含了访问地址和账号、密码如果安装后不小心关掉了ssh连接可以使用如下命令查看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访问验证从成功信息中的 Console、Account 和 Password 参数分别获取 KubeSphere Web 控制台的 IP 地址、管理员用户名和管理员密码并使用网页浏览器登录 KubeSphere Web 控制台。说明取决于您的硬件和网络环境您可能需要配置流量转发规则并在防火墙中放行 30880 端口。离线安装包地址通过网盘分享的文件kubeshpere4.1.2链接https://pan.baidu.com/s/1VVyQJlxnZByz4mn5h8T7RA?pwdc4hk提取码c4hk

相关新闻

Zookeeper - Curator 实现 Watcher 的优雅监听与封装

Zookeeper - Curator 实现 Watcher 的优雅监听与封装

👋 大家好,欢迎来到我的技术博客! 📚 在这里,我会分享学习笔记、实战经验与技术思考,力求用简单的方式讲清楚复杂的问题。 🎯 本文将围绕Zookeeper这个话题展开,希望能为你带来一些启…

2026/11/17 13:08:17 阅读更多 →
odd的第一篇博客

odd的第一篇博客

8

2026/11/17 9:30:27 阅读更多 →
LLaMA 学习笔记

LLaMA 学习笔记

目录 llama_cpp LLaMA模型结构: 模型微调手册: 显存占用: 推理示例: 指定位置加载模型 测试ok: 模型下载: llama-stack 下载 modelscope 下载 LLaMA 优化技术 RMSNorm SwiGLU 激活函数 旋转位…

2026/11/11 6:19:04 阅读更多 →

最新新闻

Electron桌面应用开发实战:从环境搭建到打包发布全流程

Electron桌面应用开发实战:从环境搭建到打包发布全流程

做前端这些年,我大部分时间都在跟浏览器标签页打交道,直到第一次把桌面应用跑起来,才发现原来自己一直被限制在地址栏和刷新按钮围起来的框框里。Electron这个词,最开始是在某段时间频繁出现在同事的讨论里,一个用HTML…

2026/11/17 8:22:52 阅读更多 →
滑盖智能锁T109深度解析:结构原理、安装调试与故障排查

滑盖智能锁T109深度解析:结构原理、安装调试与故障排查

简介:亚太天能T109滑盖智能锁产品说明书是一份PDF格式的官方技术文档,主要面向智能锁安装人员、终端用户及售后维护者,帮助快速掌握产品安装、配置与常见故障处理。全包仅1个PDF文件,大小4.37MB,内容结构清晰&#xff…

2026/11/17 12:46:04 阅读更多 →
PMSM弱磁控制原理与Simulink建模:高速AGV驱动系统设计指南

PMSM弱磁控制原理与Simulink建模:高速AGV驱动系统设计指南

上个月我在调试一台高速AGV的驱动系统,整车要求空载跑到8m/s,电机转速已经拉到额定点,驱动器的输出电压也顶到了母线电压极限附近。再往上踩速度指令,转速纹丝不动,三相电流反而开始震荡。那会儿我的第一反应就是&…

2026/11/17 12:46:04 阅读更多 →
C++核心知识点:从内存管理到STL的实战指南

C++核心知识点:从内存管理到STL的实战指南

C 这门语言我前前后后折腾了十几年,用它写过嵌入式驱动、做过游戏服务端,也搭过基础组件库。每次看到新人一头扎进"C 核心知识点"这个搜索词,我其实挺感慨的——这门语言的难点从来不是语法多,而是知识点之间的耦合太深…

2026/11/17 11:26:33 阅读更多 →
T109滑盖智能锁怎么装?安装调试与故障排查全攻略

T109滑盖智能锁怎么装?安装调试与故障排查全攻略

简介:亚太天能T109滑盖智能锁产品说明书以PDF格式发布,适合智能锁用户、安装人员与售后维修人员阅读。内容围绕T109系列指纹密码刷卡锁展开,先介绍前面板、后面板、锁体、机械钥匙、电池盒盖等部件名称与功能,再给出完整安装步骤&…

2026/11/17 12:46:05 阅读更多 →
LLM知识降熵:从信息垄断到理解权下放

LLM知识降熵:从信息垄断到理解权下放

你有没有过这种经历:翻开源码注释、论文摘要或者一份专业报告,每个字都认识,连在一起却像天书。想找人聊聊,身边要么没人懂,要么懂的懒得跟你解释。后来我试着把同一段内容丢给一个大语言模型,几秒钟之后&a…

2026/11/17 12:46:05 阅读更多 →

日新闻

周新闻

月新闻