Repository navigation
Releases
Releases · jinteng123/searke
searke v0.5.0
Highlights
- Per-node passwords on
add:searke add --nodes <ip> --ssh-user root --password <pw>now only connects the new nodes plus the bootstrap server — previously-added nodes are never dialed, so nodes with different passwords can be added one at a time. - Managed cluster SSH key: after a successful password login, searke installs a cluster-managed ed25519 key (private key at
<cluster-dir>/.searke/id_ed25519) into the node'sauthorized_keysand records it asspec.ssh.identityFile. All subsequent commands (apply,exec,uninstall,delete, ...) authenticate by key — no password needed again. An explicit--ssh-keypushes that key's public half instead. - Bootstrap auth fallback:
addfalls back to--passwordfor the bootstrap server when the descriptor carries no credential for it (fixesrun --password-installed remote clusters). - TOFU host keys: a missing
~/.ssh/known_hostsis auto-created and first-seen host keys are trusted once, fingerprint logged, then strictly enforced — matching OpenSSHaccept-new. New global--strict-host-keyflag restores the old refuse-unknown behavior and applies to every SSH path. - Agents named by hostname:
addprobes each new node's hostname and uses it as the Kubernetes node name (falls back toagent-NNwhen unusable or colliding); new servers keepserver-NNso name ordering can't hijack the bootstrap node. --password-stdinonrun/addreads the password from stdin instead of the command line.- Host-key algorithm order now prefers ed25519 to match OpenSSH, and key-mismatch errors hint when known_hosts may pin a different key type.
Install
curl -LO https://github.com/jinteng123/searke/releases/download/v0.5.0/searke-linux-amd64 # or -arm64, darwin-*
sudo install -m 755 searke-linux-amd64 /usr/local/bin/searkeVerify binaries against SHA256SUMS.
Migrating clusters whose nodes were added before v0.5.0
Nodes added with earlier versions have no managed key authorized and no identityFile in cluster.yaml. After running one add --password with this release (which creates the managed key), push it once to the older nodes:
ssh-copy-id -i ~/.searke/<cluster>/.searke/id_ed25519.pub root@<old-node-ip>Full changelog: v0.4.0...v0.5.0
searke v0.4.0
Highlights
- sealos-style install/expansion:
searke run <bundle> --masters ip,... --nodes ip,...generates~/.searke/searke/cluster.yamland provisions remote nodes over SSH;searke add --masters/--nodesexpands an existing cluster (preflight first, descriptor only updated on success) - no -f needed: commands auto-resolve the single generated descriptor under
~/.searke/*/cluster.yaml - kubeconfig
--server: fetch kubeconfig via any reachable server, override API endpoint host orhost:port - node CLI setup: after install, nodes get
/usr/local/bin/{rke2,kubectl,crictl,ctr}and kubeconfig at~/.kube/config(root + invoking user); stale searke-installed configs are replaced, foreign configs preserved asconfig-<cluster> - fixes: concurrent-SFTP progress race, upgrade cancellation/streaming, bootstrap-ready token fetch, IPv6 endpoint normalization, SSH password never serialized, config-drift convergence on active nodes, zero-padded node naming
Generated with Devin
v0.3.0
What's new
- Live install output:
apply/runnow stream artifact extraction, upload progress,install.shoutput and RKE2 systemd journals per node; readiness waits report every 5s. - Run logs:
apply,run,upgrade,add,delete,uninstall,snapshot save/restoreandcert san/rotatemirror all output to~/.searke/logs/<cluster>/(10 most recent kept). - cgroup v1 compatibility: preflight detects cgroup v1 and swap. Nodes running cgroup v1 (Kylin V10, CentOS 7, Alinux 2) get
kubelet-arg fail-cgroupv1=falseinjected automatically on RKE2 >= v1.35;fail-cgroupv1=truepinned inrke2Configis refused before install. - Cancellation: Ctrl-C now stops local and remote work promptly (SIGTERM through sudo + WaitDelay locally, best-effort remote pkill over a fresh SSH session).
- Faster uploads: SFTP concurrent writes; progress lines throttled to every 5s.
- README rewritten as a user guide.
Install
curl -sSfL https://github.com/jinteng123/searke/releases/latest/download/searke-linux-amd64 -o searke
chmod +x searke
Pre-built public image: registry.cn-hangzhou.aliyuncs.com/searke/rke2:<version>-rke2r1 (amd64+arm64).
searke v0.2.0
离线、多架构的 RKE2 集群安装与运维工具,单个静态二进制,目标节点不需要额外依赖。
下载
| 文件 | 平台 |
|---|---|
searke-linux-amd64 |
Linux x86_64 |
searke-linux-arm64 |
Linux ARM64 |
searke-darwin-arm64 |
macOS Apple Silicon |
searke-darwin-amd64 |
macOS Intel |
curl -LO https://github.com/jinteng123/searke/releases/download/v0.2.0/searke-linux-amd64
sudo install -m 755 searke-linux-amd64 /usr/local/bin/searke
searke version可用 SHA256SUMS 校验:shasum -a 256 -c SHA256SUMS --ignore-missing
现成的 RKE2 bundle(公开,免登录)
registry.cn-hangzhou.aliyuncs.com/searke/rke2:v1.36.5-rke2r1 # amd64 + arm64
registry.cn-hangzhou.aliyuncs.com/searke/rke2:v1.36.5-rke2r1-amd64
registry.cn-hangzhou.aliyuncs.com/searke/rke2:v1.36.5-rke2r1-arm64
v0.1.0 以来的变化
- 新增 Sealos 风格运维命令:
delete、exec、scp、hosts sync、hostname、kubeconfig、cert check/san/rotate、image pull/inspect/serve、gen、version、completion upgrade支持 patch 和+rke2rN修订版升级,修复了 cordon 状态的节点被误判为未就绪的问题,中断后重跑可以接着完成snapshot restore停服务前先检查快照是否存在,其余 server 重新加入时保留本地快照- 兼容 RHEL 系 sudo 的
secure_path,以及 install.sh 装到/opt/rke2/bin的情况 add新增 server 不会再改变 bootstrap 节点- 首台 server 的就绪检查不再依赖 curl
- 支持直接引用单架构镜像 tag(
-amd64/-arm64)
真机验证环境:Parallels Ubuntu 24.04 arm64,3 台 server。验证内容包括 apply、add/delete、upgrade(v1.36.5 → v1.36.6)、snapshot save/restore、cert、uninstall 后重新安装。