1

Kubuesphere部署Ruoyi(二):部署kubesphere - BelChance

 1 year ago
source link: https://www.cnblogs.com/belchance/p/17334084.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
2023-04-19 17:30阅读: 58评论: 0推荐: 3

Kubuesphere部署Ruoyi(二):部署kubesphere

先决条件:

  1. 更换DNS
  2. 更换apt的镜像源

Ubuntu下永久性修改DNS

vi /etc/systemd/resolved.conf

DNS字段取消注释,并修改DNS为223.5.5.5
223.5.5.5是一个IP地址,是Alibaba Cloud提供的免费DNS服务器的IP地址。
修改后保存。

systemctl restart systemd-resolved

清华镜像源

https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
建议使用http的sources,再下载

sudo apt install apt-transport-https
sudo apt install ca-certificates

再更改回https的sources

部署Kubesphere

以集群方式部署k8s和kubesphere。我们采用的工具是KubeKey。
操作文档(含环境要求):https://kubesphere.io/zh/docs/v3.3/installing-on-linux/introduction/multioverview/

  1. k8s建议版本选择v1.21.5,k8sp选择 v3.3.0,否则可能出现安装过程中无法下载镜像的情况。
  2. 建议先不启用插件。等安装完毕以后再启用可插拔插件,否则容易下载失败、下载速度慢。

更改Docker镜像源

KubeKey 会默认安装最新版本的 Docker,所以安装好kubesphere的时候,Docker也安装好了。

cd /etc/docker
vim daemon.json

更改registry-mirrors字段

 "registry-mirrors" : [
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com",
    "https://docker.mirrors.ustc.edu.cn",
    "https://mirror.ccs.tencentyun.com"
  ]

更改好以后重启docker。

systemctl daemon-reload
systemctl restart docker.service

本文作者:belchance

本文链接:https://www.cnblogs.com/belchance/p/17334084.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @ 2023-04-19 17:30  BelChance  阅读(58)  评论(0)  编辑  收藏  举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK