JeeGit 官方论坛

找回密码
立即注册
搜索
热搜: 活动 交友 discuz
发新帖

1

收听

0

听众

192

主题
发表于 2024-2-27 21:16:15 | 查看: 162| 回复: 5






https://www.kubesphere.io/zh/doc ... ll-in-one-on-linux/

yum -y update


curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.7 sh -



./kk create config --with-kubernetes v1.21.10 --with-kubesphere v3.3.2

一键安装

  1. ./kk create cluster --with-kubernetes v1.21.10 --with-kubesphere v3.3.2
复制代码



chmod +x kk


export KKZONE=cn

./kk create cluster -f config-sample.yaml

1.安装 wget 插件

yum -y install wget

2.yum -y update

3.centos不能ping通github.com
编辑/etc/hosts 文件
加入 192.30.255.113 github.com 即可


4. 必要工具的安装


yum install conntrack-tools

yum install conntrack

yum install socat



yum install -y wget && yum install -y vim && yum install -y lsof && yum install -y net-tools



apt install -y wget && apt install -y vim && apt install -y lsof && apt install -y net-tools



systemctl stop firewalld

systemctl disable firewalld

systemctl stop firewalld.service

systemctl status firewalld.service

systemctl disable firewalld.service

docker login



4. 升级docker 镜像加速

vi /etc/docker/daemon.json


{
"registry-mirrors": ["https://kuamavit.mirror.aliyuncs.com", "https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn"],
"log-opts": {
    "max-size": "5m",
    "max-file":"3"
  },
  "exec-opts": ["native.cgroupdriver=systemd"]
}

其他可选:
{"registry-mirrors": ["https://registry.docker-cn.com","http://hub-mirror.c.163.com"]}
"registry-mirrors": ["https://ikg8ygxy.mirror.aliyuncs.com"]



vi /etc/hosts

192.30.255.113 github.com
#52.87.94.70 registry-1.docker.io

vim /etc/resolv.conf


nameserver 114.114.114.114
nameserver 8.8.8.8




sudo systemctl daemon-reload
sudo systemctl restart docker




命令参考
./kk delete cluster -f config-prod.yaml && rm -rf kubekey
./kk delete cluster
./kk init os -f config-prod.yaml

./kk create cluster -f config-prod.yaml

./kk create cluster -f config-prod.yaml

./kk create cluster -f config-prod.yaml --with-kubesphere v3.4.1

./kk upgrade -f config-prod.yaml







磁盘的挂载

如果利用独立数据盘挂载 ,则无需更改太多事项

如果利用软链接,则要重置权限。

































https://www.kubesphere.io/zh/doc ... ll-in-one-on-linux/

yum -y update


curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.7 sh -



./kk create config --with-kubernetes v1.21.10 --with-kubesphere v3.3.2


chmod +x kk


export KKZONE=cn

./kk create cluster -f config-sample.yaml

1.安装 wget 插件

yum -y install wget

2.yum -y update

3.centos不能ping通github.com
编辑/etc/hosts 文件
加入 192.30.255.113 github.com 即可


4. 必要工具的安装


yum install conntrack-tools

yum install conntrack

yum install socat

apt install conntrack

apt install socat


yum install -y wget && yum install -y vim && yum install -y lsof && yum install -y net-tools


systemctl stop firewalld

systemctl disable firewalld

systemctl stop firewalld.service

systemctl status firewalld.service

systemctl disable firewalld.service
sudo service iptables stop
sudo chkconfig iptables off

docker login



4. 升级docker 镜像加速

vi /etc/docker/daemon.json


{
"registry-mirrors": ["https://kuamavit.mirror.aliyuncs.com", "https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn"],
"log-opts": {
    "max-size": "5m",
    "max-file":"3"
  },
  "exec-opts": ["native.cgroupdriver=systemd"]
}



yum install conntrack

yum install socat


vi /etc/hosts

192.30.255.113 github.com
52.87.94.70 registry-1.docker.io

vim /etc/resolv.conf


nameserver 114.114.114.114
nameserver 8.8.8.8




sudo systemctl daemon-reload
sudo systemctl restart docker
{"registry-mirrors": ["https://registry.docker-cn.com","http://hub-mirror.c.163.com"]}
"registry-mirrors": ["https://ikg8ygxy.mirror.aliyuncs.com"]




./kk delete cluster -f config-prod.yaml && rm -rf kubekey
./kk delete cluster
./kk init os -f config-prod.yaml

./kk create cluster -f config-prod.yaml

./kk create cluster -f config-prod.yaml

./kk create cluster -f config-prod.yaml --with-kubesphere v3.4.1

./kk upgrade -f config-prod.yaml







磁盘的挂载

如果利用独立数据盘挂载 ,则无需更改太多事项

如果利用软链接,则要重置权限。


PostGresql /Redis /Nacos/Redis/Minio 高可用部署方案

Gitlab/Harbor/Nexus

文档整理










本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

发表于 2024-3-2 13:04:46
yum install conntrack-tools

yum install conntrack

yum install socat


vi /etc/hosts

192.30.255.113 github.com
52.87.94.70 registry-1.docker.io


https://blog.csdn.net/jks212454/article/details/126326299/



  1. [root@node ~]# cat /etc/hosts
  2. 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
  3. ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
  4. 44.194.5.25  registry-1.docker.io

复制代码

回复 显示全部楼层 道具 举报

发表于 2024-3-2 22:05:08

回复 显示全部楼层 道具 举报

发表于 2024-3-5 18:01:56

回复 显示全部楼层 道具 举报

发表于 2024-3-6 21:34:23
1.安装 wget 插件

yum -y install wget

2.yum -y update

3.centos不能ping通github.com
编辑/etc/hosts 文件
加入 192.30.255.113 github.com 即可


4. 必要工具的安装

yum install -y wget && yum install -y vim && yum install -y lsof && yum install -y net-tools


systemctl stop firewalld

systemctl disable firewalld

systemctl stop firewalld.service

systemctl status firewalld.service

systemctl disable firewalld.service


5. 基础环境提前安装

yum -y install conntrack

yum -y install epel-release

yum -y install socat

6. 升级docker 镜像加速


7. docker login 命令登录


Centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等
https://cloud.tencent.com/develo ... Q0b_3emQiZuionemTS4

回复 显示全部楼层 道具 举报

发表于 2024-3-9 03:21:32
sudo add-apt-repository \
"deb [arch=amd64] http://hub-mirror.c.163.com/docker-ce/linux/ubuntu/ \
$(lsb_release -cs) \
stable"

回复 显示全部楼层 道具 举报

您需要登录后才可以回帖 登录 | 立即注册

QQ|Archiver|手机版|小黑屋|JeeGit 官方论坛 ( 吉ICP备19001578号-2|吉B2-20200006 )

GMT+8, 2024-5-1 00:02 , Processed in 0.074887 second(s), 27 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表