Skip to content

Releases

searke v0.5.0

Choose a tag to compare

@jinteng123 jinteng123 released this 23 Nov 10:52

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's authorized_keys and records it as spec.ssh.identityFile. All subsequent commands (apply, exec, uninstall, delete, ...) authenticate by key — no password needed again. An explicit --ssh-key pushes that key's public half instead.
  • Bootstrap auth fallback: add falls back to --password for the bootstrap server when the descriptor carries no credential for it (fixes run --password-installed remote clusters).
  • TOFU host keys: a missing ~/.ssh/known_hosts is auto-created and first-seen host keys are trusted once, fingerprint logged, then strictly enforced — matching OpenSSH accept-new. New global --strict-host-key flag restores the old refuse-unknown behavior and applies to every SSH path.
  • Agents named by hostname: add probes each new node's hostname and uses it as the Kubernetes node name (falls back to agent-NN when unusable or colliding); new servers keep server-NN so name ordering can't hijack the bootstrap node.
  • --password-stdin on run/add reads 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/searke

Verify 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

Choose a tag to compare

@jinteng123 jinteng123 released this 18 Nov 02:39

Highlights

  • sealos-style install/expansion: searke run <bundle> --masters ip,... --nodes ip,... generates ~/.searke/searke/cluster.yaml and provisions remote nodes over SSH; searke add --masters/--nodes expands 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 or host: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 as config-<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

Choose a tag to compare

@jinteng123 jinteng123 released this 17 Nov 01:42

What's new

  • Live install output: apply/run now stream artifact extraction, upload progress, install.sh output and RKE2 systemd journals per node; readiness waits report every 5s.
  • Run logs: apply, run, upgrade, add, delete, uninstall, snapshot save/restore and cert san/rotate mirror 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=false injected automatically on RKE2 >= v1.35; fail-cgroupv1=true pinned in rke2Config is 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

Choose a tag to compare

@jinteng123 jinteng123 released this 08 Nov 03:22

离线、多架构的 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 后重新安装。