<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>72602 :: Ay Docs</title><link>https://aaronyang0628.github.io/docs/csp/72602/index.html</link><description>Scope This section is the single source of truth for 72602 cluster operations.
Topology Public ECS: 47.110.67.161 (2C4G, Aliyun Hongkong) Active ingress domain: 72602.space; legacy .72602.online routes are retired ArgoCD host: argocd.72602.space k3s node: 72602-minipc (192.168.0.25, MiniPC N100 28G+1TB NVMe) SSH reverse tunnel: :10021 (main), :10022 (backup, also carries 80/443) Ingress NodePort: 32080 (HTTP), 32443 (HTTPS) Ingress class: nginx Ingress namespace: basic-components cert-manager issuer: lets-encrypt Storage class: local-path (default, RWO) OS: Ubuntu 26.04 LTS (minipc) k3s version: v1.34.6+k3s1 (installed via install.sh) Traffic Path Internet -&gt; ECS(sshd reverse tunnel) -&gt; minipc:k3s ingress-nginx</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 07 Mar 2024 15:00:59 +0800</lastBuildDate><atom:link href="https://aaronyang0628.github.io/docs/csp/72602/index.xml" rel="self" type="application/rss+xml"/><item><title>ECS Security Group</title><link>https://aaronyang0628.github.io/docs/csp/72602/security-group-auto-update/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://aaronyang0628.github.io/docs/csp/72602/security-group-auto-update/index.html</guid><description>安全组 IP 自动更新 背景 72602-minipc 的 ISP 不定期更换公网 IP，而阿里云 ECS (ecs-99) 安全组限制了 SSH 端口只能从特定 IP 访问。
当公网 IP 变化时：
SSH 反向隧道断开 无法通过 ssh aaron@47.110.67.161 -p 10022 访问 无法直接 ssh root@47.110.67.161 解决方案 定时检测公网 IP，变化时自动更新阿里云安全组规则。
所有阿里云安全组和 AliDNS 操作统一从 72602-minipc 执行。
工作原理 每 5 分钟 ──&gt; 获取公网 IP (ifconfig.me → ip.sb → icanhazip.com) │ ├── 全部失败 ──&gt; 钉钉告警，退出 │ └── 获取成功 ──&gt; 与上次对比 ├── 未变化 ──&gt; 退出 └── 已变化 ──&gt; 更新安全组规则 → 钉钉通知 受影响的端口 端口 用途 22 ECS SSH 直接连接、反向隧道 10021 预留 10022 SSH 反向隧道（72602-minipc 入口） 文件位置 文件 说明 /home/aaron/bin/update-sg-ip.sh 主脚本 /home/aaron/.aliyun-keys 阿里云 AccessKey（chmod 600） /etc/systemd/system/update-sg-ip.service systemd 服务 /etc/systemd/system/update-sg-ip.timer systemd 定时器（每 5 分钟，开机 30 秒后首次触发） /tmp/last_public_ip 上次公网 IP 缓存 可恢复备份 脱敏后的可恢复备份位于私有仓库 /home/aaron/Ops/ops-private，对应提交 8abb81d，包含：</description></item><item><title>SSH Tunnel</title><link>https://aaronyang0628.github.io/docs/csp/72602/tunnel/index.html</link><pubDate>Thu, 07 Mar 2024 15:00:59 +0800</pubDate><guid>https://aaronyang0628.github.io/docs/csp/72602/tunnel/index.html</guid><description>72602 隧道统一采用双入口反向隧道：
主入口：10021 备入口：10022 目标 ECS：47.110.67.161 (ecs-99) 快速连接命令：
ssh -p 10021 aaron@47.110.67.161 ssh -p 10022 aaron@47.110.67.161 上线顺序建议：
先在 72602-minipc 创建并启动 10022（备入口） 验证 ECS 已监听 10022 再创建并启动 10021（主入口） 最后做外网双端口连通性验证 完整步骤、故障恢复与运维命令见子页面。
72602-minipc → ecs-99</description></item></channel></rss>