ing-switch

ing-switch

GitHub: https://github.com/saiyam1814/ing-switch

⭐ 星星數: 105

摘要: ing-switch 是一套通用的 Kubernetes ingress 遷移工具:掃描叢集中所有 ingress 資源、以影響評级映射 119+ 個 annotations,並為 Traefik、Gateway API 等三種目標產生可直接套用的遷移 manifests。因應 Ingress NGINX 已於 2026 年 3 月除役,它是快速搬遷的利器。

技術堆疊: Go, Kubernetes, Ingress NGINX, Traefik, Kong, HAProxy, Istio, Gateway API, kubectl

架構: 以 Go 開發的 CLI,將遷移流程拆成明確的管線:doctor 健康檢查評估遷移就緒度、scan 自動偵測控制器並列出所有 Ingress/IngressRoute/VirtualService、analyze 產生每條 annotation 的相容性表(支援/部分支援/不支援,可搭配 --ci 做 pipeline gating)、diff 呈現資源級前後差異、migrate 產出完整輸出目錄(含 Middlewares、HTTPRoutes、Gateway、驗證腳本、DNS 指南與清理腳本),最後 apply 可直接以 kubectl 套用並支援 --dry-run。另提供 report 輸出可分享的 HTML 報告與 ui 啟動 8080 埠的四頁視覺化儀表板(Detect → Analyze → Migrate → Validate)。