1:Ko系统主机配置
关闭swap swapoff -a sed -i '/ swap / s/^(.*)$/#\1/g' /etc/fstab
防火墙关闭 systemctl stop firewalld && systemctl disable firewalld
SELinux关闭 setenforce 0 sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
2:k8s主机配置
关闭swap swapoff -a sed -i '/ swap / s/^(.*)$/#\1/g' /etc/fstab
防火墙关闭 systemctl stop firewalld && systemctl disable firewalld
SELinux关闭 setenforce 0 sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
时区 timedatectl set-timezone Asia/Shanghai
3:离线安装
tar -zxvf KubeOperator-release-v3.16.4-amd64.tar.gz
cd KubeOperator-release-v3.16.4
/bin/bash install.sh
等待安装脚本执行完成后,查看 KubeOperator状态:
koctl status
4:登录
地址: http://<ko服务器_ip>:80 用户名: admin 密码: kubeoperator@admin123
5:安装集群