一、介绍
AlmaLinux是一个开源的、社区驱动的项目,旨在填补CentOS稳定版本消亡所留下的空白。AlmaLinux是RHEL 8的一个1:1二进制兼容的分支,它是由有丰富经验的CloudLinux OS的创建者(Igor Seletskiy)构建的。 官网:https://almalinux.org/ 下载地址:https://mirrors.aliyun.com/almalinux/
二、安装部署流程
1、安装环境依赖软件
[root@localhost ~]# yum update -y
[root@localhost ~]# yum install -y vim wget net-tools
[root@localhost ~]# yum makecache
[root@localhost ~]# yum install -y conntrack socat
[root@localhost ~]# yum install yum-utils device-mapper-persistent-data lvm2 -y
2、安装Docker环境
卸载较旧的 Docker 版本称为 docker 或 docker-engine
yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
添加docker仓库源地址(阿里云)
yum-config-manager \
--add-repo \
http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
安装docker(默认安装最新版本),并设置开机自启动。
yum install docker-ce docker-ce-cli containerd.io -y
systemctl enable docker --now
3、运行环境说明
1)系统信息
[root@localhost ~]# uname -a
Linux localhost.localdomain 5.14.0-70.30.1.el9_0.aarch64 #1 SMP Wed Nov 2 23:05:24 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
2)系统架构
ARM
3)环境配置
8核,16G内存,64GB存储
4)虚拟化软件
PD 18 for Mac
4、执行命令安装
[root@localhost ~]# export KKZONE=cn
[root@localhost ~]# curl -sfL https://get-kk.kubesphere.io | VERSION=v2.3.0 sh -
[root@localhost ~]# ./kk create cluster --with-kubernetes v1.22.12 --with-kubesphere v3.3.1
5、查看安装日志、验证安装结果
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
6、查看docker、K8S版本信息
[root@localhost ~]# docker version
Client: Docker Engine - Community
Version: 20.10.21
API version: 1.41
Go version: go1.18.7
Git commit: baeda1f
Built: Tue Oct 25 18:00:55 2022
OS/Arch: linux/arm64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.21
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
Git commit: 3056208
Built: Tue Oct 25 17:59:12 2022
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.9
GitCommit: 1c90a442489720eec95342e1789ee8a5e1b9536f
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
[root@localhost ~]# kubectl version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.12", GitCommit:"b058e1760c79f46a834ba59bd7a3486ecf28237d", GitTreeState:"clean", BuildDate:"2022-07-13T14:59:18Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/arm64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.12", GitCommit:"b058e1760c79f46a834ba59bd7a3486ecf28237d", GitTreeState:"clean", BuildDate:"2022-07-13T14:53:39Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/arm64”}
7、登陆访问KS dashboard URL: http://10.xxx.55.5:30880 初始账号: admin 初始密码: P@88w0rd
8、K8S集群pod/ns运行信息
标签:容器,Version,Almalinux,kubesphere,version,yum,docker,root,localhost From: https://blog.51cto.com/leoheng/5850965