龙空技术网

CentOS安装 All-in-One 模式安装 KubeSphere

七星院长 395

前言:

如今兄弟们对“centos安装nf_conntrack”都比较注意,我们都想要了解一些“centos安装nf_conntrack”的相关资讯。那么小编在网上汇集了一些对于“centos安装nf_conntrack””的相关内容,希望你们能喜欢,咱们快快来学习一下吧!

Kubesphere官方文档:

1. 安装CentOS

要把处理器核心数设置在 2以上,这是k8s安装配置要求的

2. 配置 ip

 vi /etc/sysconfig/network-scripts/ifcfg-ens33 ## 简单的就是设置为静态ip ONBOOT=yes
3. 禁用selinux(坑 一)
vi /etc/sysconfig/selinux## 这是设置一个属性为disabledSELINUX=disabled

配置完之后需要重启 reboot

4. 官网要求

(1)节点必须能够通过 SSH 连接。

(2)节点上可以使用 sudo/curl/openssl 命令。

(3)docker 可以由您自己安装或由 KubeKey 安装。

注意:如果你想离线安装 KubeSphere,请务必提前安装好 docker。

安装要求的依赖

yum install socat conntrack ebtables ipset
5. 关闭防火墙(坑二)
systemctl stop firewalld.service # 停止systemctl disable firewalld.service # 禁用防火墙,下次启动也不会开启
6. 安装docker(坑三)
# 1. 安装dockeryum  install docker docker.io# 2. 配置docker 源vim /etc/docker/daemon.json{        "registry-mirrors": [                ";        ]}# 3. 重载dockersudo systemctl daemon-reloadsudo systemctl restart docker
7. 安装KubeKey
# 先执行以下命令以确保从正确的区域下载 KubeKeyexport KKZONE=cn# 执行以下命令下载 KubeKeycurl -sfL  | VERSION=v1.0.1 sh -# 为kk添加可执行权限chmod +x kk
8. 安装Kubernetes和kubesphere
# 安装./kk create cluster --with-kubernetes v1.17.9 --with-kubesphere v3.0.0

验证结果

kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
**************************************************########################################################              Welcome to KubeSphere!           ########################################################Console: : adminPassword: P@88w0rdNOTES:  1. After logging into the console, please check the     monitoring status of service components in     the "Cluster Management". If any service is not     ready, please wait patiently until all components     are ready.  2. Please modify the default password after login.#####################################################             2021-08-28 12:20:55#####################################################
9.登录

标签: #centos安装nf_conntrack