栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

在 Ubuntu 上以 All-in-One 模式安装 KubeSphere Kubernetes

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

在 Ubuntu 上以 All-in-One 模式安装 KubeSphere Kubernetes

all-in-one 需要安装些小的工具

硬件:Thinkpad X1 内存32G 2T硬盘
操作系统:Ubuntu 20.04
Docker:Version 20.10.12

更多关注:JeeGit 5.0 企业级快速开发平台

1 安装依赖项

su root

apt install curl
apt-get install socat
apt-get install conntrack
apt-get install ebtables
apt-get install ipset
2 安装KubeKey
curl -sfL https://get-kk.kubesphere.io | VERSION=v1.2.1 sh -
3 开始安装All-in-One
./kk create cluster --with-kubernetes v1.21.5 --with-kubesphere v3.2.1

我当前使用的最新版本是Latest Release:1.23.1 (released: 2021-12-16),KubeSphere 是 3.2.1

所以升级命令

./kk create cluster --with-kubernetes v1.23.1 --with-kubesphere v3.2.1

安装后发现会有问题,还是用官方版本

./kk create cluster --with-kubernetes v1.21.5 --with-kubesphere v3.2.1
4 卸载全部 KubeSphere + Kubernetes

KubeSphere All-in-One 卸载

./kk delete cluster
5 相关插件的安装

https://kubesphere.com.cn/docs/quick-start/enable-pluggable-components/

完整配置文件参考

https://github.com/kubesphere/kubekey/blob/release-1.2/docs/config-example.md

按需启动可插拔插件

https://kubesphere.com.cn/docs/pluggable-components/

6 常见问题 (1) 22端口问题

如果出现22端口的问题参考下面的命令

开启ssh服务:service sshd start

关闭ssh服务:service sshd stop

重启ssh服务:servcie sshd restart

SSH服务开机自动启动:chkconfigsshd on

取消开机自启动:chkconfig sshd off

开启服务后,检查服务状态:service sshd status

解决原因2:安装ssh:
yum install openssh-server

(2) 密码忘记问题

忘记admin密码情况下,如何修改admin密码

kubectl patch users  -p '{"spec":{"password":""}}' --type='merge' && kubectl annotate users  iam.kubesphere.io/password-encrypted-
(3) 卸载软件

安装 卸载_K8S,KubeSphere安装与卸载

https://blog.csdn.net/weixin_39908462/article/details/112682912

更多关注:JeeGit 5.0 企业级快速开发平台

7 参考文章

文档地址:https://kubesphere.io/zh/docs/quick-start/all-in-one-on-linux/
https://blog.csdn.net/luo15242208310/article/details/121595722?
https://kubesphere.io/zh/docs/quick-start/all-in-one-on-linux/
https://kubesphere.com.cn/forum/d/2041-kubesphere3-0-admin-admin/6
https://blog.csdn.net/u013067756/article/details/76086835
https://kubernetes.io/releases/
https://kubesphere.io/zh/docs/

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/705399.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号