This commit is contained in:
@@ -116,20 +116,20 @@
|
||||
|
||||
## 安装并初始化Rke
|
||||
|
||||
[RKE二进制文件](https://github.com/rancher/rke/releases/)
|
||||
[RKE二进制文件](https://github.com/rancher/rke/releases/) [官方中国国内二进制文件](https://mirror.rancher.cn/#rke/)
|
||||
|
||||
1. 下载 RKE 二进制文件,并添加到可执行路径下
|
||||
|
||||
> 1.8 版本是 RKE 1.x 系列的最终版本
|
||||
|
||||
```bash
|
||||
wget https://github.com/rancher/rke/releases/download/v1.8.6/rke_linux-amd64
|
||||
wget https://github.com/rancher/rke/releases/download/v1.8.9/rke_linux-amd64
|
||||
```
|
||||
|
||||
2. 授权
|
||||
|
||||
```bash
|
||||
chmod 777 rke_linux-amd64 && mv rke_linux-amd64 /usr/local/bin/rke
|
||||
install -o root -g root -m 0755 rke_linux-amd64 /usr/local/bin/rke
|
||||
```
|
||||
|
||||
### 方法一 (不推荐怪麻烦的请看"方法二")
|
||||
@@ -209,6 +209,16 @@ sed -i '/^ingress:$/,/^ provider:/ s/provider: ""/provider: "none"/' cluster.ym
|
||||
...
|
||||
```
|
||||
|
||||
**更换镜像仓库**(适用于离线环境)
|
||||
|
||||
```yaml
|
||||
private_registries:
|
||||
- url: registry.cn-hangzhou.aliyuncs.com # 仅为示例
|
||||
is_default: true # 所有的系统镜像都将使用该镜像仓库进行拉取
|
||||
user: $user
|
||||
password: $password
|
||||
```
|
||||
|
||||
3. 基础参数修改
|
||||
|
||||
```bash
|
||||
@@ -390,7 +400,14 @@ rke etcd snapshot-restore --config cluster.yml --name <快照名称>
|
||||
curl -sfL https://gitee.com/offends/Kubernetes/raw/main/File/Shell/restore-rkestate-config.sh | bash -s
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 基础命令
|
||||
|
||||
- 查看集群所需镜像
|
||||
|
||||
```bash
|
||||
rke config --system-images
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
7
部署文档/Rancher/如何在国内使用Rancher.md
Normal file
7
部署文档/Rancher/如何在国内使用Rancher.md
Normal file
@@ -0,0 +1,7 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# 如何在国内使用Rancher
|
||||
|
||||
> 网页地址记录
|
||||
|
||||
[官方文档](https://docs.rancher.cn/docs/rancher2/best-practices/use-in-china/)
|
||||
Reference in New Issue
Block a user