当前位置:网站首页>【云原生】3.1 Kubernetes平台安装KubeSpher
【云原生】3.1 Kubernetes平台安装KubeSpher
2022-07-06 05:19:00 【程序猿追】
哈喽~大家好呀,欢迎大家来到新的一章节,本篇就来看看如何在 k8s 上来安装KubeSpher。
个人主页:个人主页
系列专栏:【云原生系列】
与这篇相关的文章:
【云原生】2.3 Kubernetes 核心实战(上) 【云原生】2.3 Kubernetes 核心实战(上)_程序猿追的博客-CSDN博客 【云原生】2.4 Kubernetes 核心实战(中) 【云原生】2.4 Kubernetes 核心实战(中)_程序猿追的博客-CSDN博客 【云原生】2.5 Kubernetes 核心实战(下) 【云原生】2.5 Kubernetes 核心实战(下)_程序猿追的博客-CSDN博客
目录
一、什么是KubeSpher?
KubeSphere 是基于 Kubernetes 构建的分布式、多租户、多集群、企业级开源容器平台,具有强大且完善的网络与存储能力,并通过极简的人机交互提供完善的多集群管理、CI/ CD、微服务治理、应用管理等功能,帮助企业在云、虚拟化及物理机等异构基础设施上快速构建、部署及运维容器架构,实现应用的敏捷开发与全生命周期管理。
二、KubeSphere 平台安装
选择4核8G(master)、8核16G(node1)、8核16G(node2) 三台机器,按量付费进行实验。
假设你的机器没有安装 Docker、没有安装 Kubernetes、没有集群,那么可以看看之前写的文章,那里面有讲解,这里就直接从前置环境开始讲解吧。
1、安装nfs-server
要求:如需在 Kubernetes 上安装 KubeSphere v31.1.1,您的Kubernetes版本必须为: 1.17.x、1.18.x、1.19.x 或1.20.x。
确保您的机器满足最低硬件要求: CPU > 1核,内存 > 2 GB。
在安装之前,需要配置 Kubernetes 集群中的默认存储类型。
先在每个机器安装工具类
yum install -y nfs-utils
在master 执行以下命令
echo "/nfs/data/ *(insecure,rw,sync,no_root_squash)" > /etc/exports
执行以下命令,启动 nfs 服务;创建共享目录
mkdir -p /nfs/data
在master执行
systemctl enable rpcbind
systemctl enable nfs-server
systemctl start rpcbind
systemctl start nfs-server
使配置生效
exportfs -r
检查配置是否生效
exportfs
然后创建了一个存储类,指定自己 nfs 服务器地址与 nfs 服务器共享的目录
确认配置是否生效
kubectl get sc
二、安装 metrics-server
(集群指标监控组件)
三、部署 KubeSphere
确保您的机器满足安装的前提条件之后,可以按照以下步骤安装 KubeSphere。
1、执行以下命令开始安装
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/kubesphere-installer.yaml
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/cluster-configuration.yaml
注:这里可能会安装失败,所以要使用命令 yum install -y wget
输入命令进行安装
kubectl apply -f kubesphere-installer.yaml
kubectl apply -f cluster-configuration.yaml
查看安装进度
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
记得要放行端口
在网址上输入 139.198.165.238:30880,就可以访问了,使用提供的账号与默认的密码(第一次登入会要求修改密码)
如果想在 Linux 上面单节点部署 KubeSphere 或者想多节点部署 KubeSphere 的话,可以在官方文档里面查看哟
(求关注)持续更新中……
边栏推荐
- Upload nestjs configuration files, configure the use of middleware and pipelines
- Modbus protocol communication exception
- Knowledge points of circular structure
- Unity gets the width and height of Sprite
- Questions d'examen écrit classiques du pointeur
- A little knowledge of CPU, disk and memory
- Application of Flody
- 集合详解之 Collection + 面试题
- idea一键导包
- CUDA11.1在线安装
猜你喜欢
随机推荐
01. 开发博客项目之项目介绍
C进阶-数据的存储(上)
Graduation design game mall
Acwing week 58
nacos-高可用seata之TC搭建(02)
Three methods of Oracle two table Association update
05. 博客项目之安全
C Advanced - data storage (Part 1)
Postman Association
Sliding window problem review
[noip2008 improvement group] stupid monkey
flutter 实现一个有加载动画的按钮(loadingButton)
Vite configures the development environment and production environment
Pointer classic written test questions
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Hyperledger Fabric2. Some basic concepts of X (1)
Unity gets the width and height of Sprite
RT thread analysis - object container implementation and function
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower