尧图网络 高端网站定制 · 原创设计
免费咨询热线
400-888-6620
免费获取方案
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
RELATED

相关推荐

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

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

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

📅 2026/11/23 0:54:51
tumblr.js常见问题解决:从认证错误到API请求限制的完整方案

tumblr.js常见问题解决:从认证错误到API请求限制的完整方案

tumblr.js常见问题解决:从认证错误到API请求限制的完整方案 【免费下载链接】tumblr.js JavaScript client for the Tumblr API 项目地址: https://gitcode.com/gh_mirrors/tu/tumblr.js tumblr.js是官方的Tumblr API JavaScript客户端库,为开发者…

📅 2026/11/5 16:19:46
基于SpringBoot的传统服饰订制系统(源码+lw+部署文档+讲解等)

基于SpringBoot的传统服饰订制系统(源码+lw+部署文档+讲解等)

课题介绍本课题旨在采用SpringBoot后端框架结合Web前端技术,设计并实现传统服饰订制系统,解决当前传统服饰订制渠道有限、个性化需求难以满足、订制流程繁琐、面料款式选择不便、订单进度不透明、版型数据管理杂乱等痛点。课题聚焦传统服饰个性化订制全流…

📅 2026/11/23 2:37:00
MORE NEWS

更多资讯

📰

赫章电工证在哪里报名千万别踩坑,实操考试心里没底怕挂科

赫章电工证在哪里报名千万别踩坑,实操考试心里没底怕挂科 你是不是也这样,第一次报名赫章电工证,心里没底,担心实操考试过不了?生怕一不小心就白忙一场,甚至影响工作?别急,今天就带你一步步搞清楚赫章电工证在哪里报名,还有那些 千万别踩坑…

📰

60岁电工证怎么复审 2026河南最新政策全解析

60岁电工证怎么复审 2026河南最新政策全解析 你是不是也担心年龄大了,电工证复审会卡在学历门槛上?别急,2026年河南最新政策已经明确了, 60岁电工证复审不看学历…

📰

江夏电工证考试千万别踩坑,这些避坑指南你必须知道

江夏电工证考试千万别踩坑,这些避坑指南你必须知道 你是不是也担心不知道去哪报名,怕被中介骗钱?江夏电工证考试千万别踩坑,今天就给你讲明白怎么走流程、怎么避坑,别再被坑了! 一、江夏电工证考试有哪些报考条件?别被中介忽悠…

📰

电工证是哪个部门考试多少钱?洛阳房建电工实操案例全解析

电工证是哪个部门考试多少钱?洛阳房建电工实操案例全解析 刚进工地没证就别想上岗,电工证是哪个部门考试?这是很多刚进工地的新人最关心的问题。现在建筑行业对特种作业证要求越来越严,尤其像低压电工证、高压电工证这类证书,不仅关系到个人能否顺利入职…

📰

无锡电工证网址报考条件与考试时间,值不值得考?

无锡电工证网址报考条件与考试时间,值不值得考? 你正愁找不到工作,却卡在没有电工证这道门槛上?别急,今天就给你讲清楚,无锡电工证网址怎么查、怎么考、值不值得考,全是干货,照着做,保你顺利拿证上岗!…

📰

桂林高级电工证 报考千万别踩坑:工地太忙根本没时间复习考试怎么办?

桂林高级电工证 报考千万别踩坑:工地太忙根本没时间复习考试怎么办? 工地太忙根本没时间复习考试,你是不是也经常这样想?别急,我来给你支个招。今天咱们就聊一聊 桂林高级电工证 报考 这件事,尤其是在 信阳浉河区水利工程从业者…

TODAY

今日更新

THIS WEEK

本周精选

THIS MONTH

本月热门

读完文章,想聊聊您的网站?

告诉我们您的行业与需求,资深顾问一对一梳理方案与报价,全程免费。

📞 💬