一键导入
k3s-upgrade-homelab
Instructions for updating the k3s homelab cluster one machine at a time while preserving custom systemd ExecStart arguments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Instructions for updating the k3s homelab cluster one machine at a time while preserving custom systemd ExecStart arguments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Search curated Arabic/English online sources for new interesting Egypt events, filter out techno/electronic club nights, and return a digest only when new events are found.
Search curated Live Nation sources for new interesting UAE events and return a digest only when new events are found.
Use when reviewing open pull requests, Renovate PRs, dependency upgrades, app upgrades, Helm chart updates, container image updates, release-note impact, or regression risk for this k8s-homelab repository. This skill should trigger whenever the user asks what open PRs can be merged, whether upgrades are safe, or what release notes imply for the repo's Kubernetes/Flux manifests.
Use when working in this repository on Kubernetes manifests, Flux-managed apps, live-cluster inspection, or homelab node/bootstrap tasks.
基于 SOC 职业分类
| name | k3s-upgrade-homelab |
| description | Instructions for updating the k3s homelab cluster one machine at a time while preserving custom systemd ExecStart arguments. |
| compatibility | opencode |
Use this skill when updating k3s in this homelab.
k8s-homelab skill for node access details and general homelab rules.Use the command that matches the node role you are upgrading.
Use this for an existing additional control-plane node:
k3sup join --server --ip <ip> --server-ip <healthy-server-ip> --user <ssh-user> --server-user <server-ssh-user> --ssh-key ~/.ssh/id_ed25519 --k3s-channel stable --no-extras
Use this for a worker node:
k3sup join --ip <ip> --server-ip <healthy-server-ip> --user <ssh-user> --server-user <server-ssh-user> --ssh-key ~/.ssh/id_ed25519 --k3s-channel stable
--server-ip points to another healthy control-plane node, never the node being upgraded.k3sup, inspect the active k3s unit on that machine./etc/systemd/system/k3s.service and record any arguments already present in ExecStart.k3s-agent.service.k3sup command for that machine./etc/systemd/system/k3s.service because k3sup may overwrite it.ExecStart arguments that were lost.systemctl daemon-reload after editing the unit file.Ready, and workloads are healthy before continuing./etc/systemd/system/k3s.service./etc/systemd/system/k3s.service; their active unit is k3s-agent.service.When k3sup rewrites the control-plane k3s.service unit, restore any custom arguments that existed before the update.
k3s-agent.service./etc/systemd/system/k3s-agent.service and /etc/systemd/system/k3s-agent.service.env.systemctl daemon-reload if you removed agent unit files.k3s-uninstall.sh or stop the healthy k3s.service.k3sup join --server ....Before touching the next machine, verify at least:
k3s on control-plane nodes, k3s-agent on workers)systemctl cat k3s still contains the expected custom argumentsReadykubectl get nodes shows the cluster healthydaemon-reload, prefer verifying the unit, reloading systemd, and then confirming k3s service health before proceeding.