# rke2-script **Repository Path**: ligima/rke2-script ## Basic Information - **Project Name**: rke2-script - **Description**: Deploy the rke2 script on the master node - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-09-22 - **Last Updated**: 2025-02-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python, script, Kubernetes, RKE ## README # 现在可使用的插件 - rke2 - helm # 待发布的插件 - docker - docker-compose 1. 生成虚拟环境 - 在与 rke2-script 的同一级目录下执行 - recommend python3 version: 3.10.12 - Linux: `python3 -m venv venv` #大多数相同 - windows: `python.exe -m venv venv` #大多数相同 2. 根据相关提示修改配置文件 - `/rek2-script/config.yaml` 3. 确保你的 systemctl 的 EXIT STATUS 是与下面一致的 - 大多数的 linux systemcl exit code 都基本相同 - Tips: 使用 man systemctl 进入手册, 进行查询, 输入/EXIT STATUS - │ 0 │ "program is running or service is OK" - │unit is active - │ 1 │ "program is dead and /var/run pid file exists" - │unit not failed (used by is-failed) - │ 2 │ "program is dead and /var/lock lock file exists" - │unused - │ 3 │ "program is not running" - │unit is not active - │ 4 │ "program or service status is unknown" - │no such unit 4. 运行脚本,在父目录下执行命令 - `python3 rke2-script config -m rke2-script -s chart01` - explain: - rke2-script # 包名 - config # 读取的配置文件,默认为 config.yaml - -m rke2-script # 模块名 - -s chart01 # Option; -s: 指定执行部分插件 # Test command 1.helm soft only support linux-amd64 2.INSTALL_RKE2_MIRROR=cn INSTALL_RKE2_VERSION=1.30.4+rke2r1 curl -sfL https://rancher-mirror.rancher.cn/rke2/install.sh -o v1.30.4+rke2r1.sh