{
  "alfredsnippet" : {
    "snippet" : "# --- 4. 路由 (Ingress) ---\napiVersion: networking.k8s.io\/v1\nkind: Ingress\nmetadata:\n  name: my-app-ingress          # <--- Ingress 名稱\n  namespace: default            # <--- 必須與 Service 同 Namespace\n  annotations:\n    # [常見設定] (視你的 Ingress Controller 而定，這裡是 Nginx 範例)\n    # nginx.ingress.kubernetes.io\/proxy-body-size: \"100m\"  # 修改上傳限制\n    # cert-manager.io\/cluster-issuer: \"letsencrypt-prod\"   # 若有裝 Cert-Manager 自動發憑證，請取消註解\nspec:\n  ingressClassName: nginx       # <--- 指定控制器類別 (例如: nginx, traefik, public)\n  \n  # [HTTPS 設定] (若暫時只跑 HTTP，這區塊可先拿掉)\n  tls:\n    - hosts:\n        - my-app.example.com    # <--- 你的網域名稱\n      secretName: my-app-tls    # <--- 憑證存放在 Secret 的名稱 (Cert-Manager 會自動產生)\n\n  rules:\n    - host: my-app.example.com  # <--- 你的網域名稱 (例如 app.192.168.1.10.nip.io)\n      http:\n        paths:\n          - path: \/\n            pathType: Prefix\n            backend:\n              service:\n                name: my-app-service  # <--- 指向剛才建立的 Service 名稱\n                port:\n                  number: 80          # <--- 指向 Service 的 Port (不是 TargetPort)",
    "uid" : "38424ADA-B229-4F0D-9D61-E0AF24BFB16C",
    "name" : "Ingress YAML 範本",
    "keyword" : ""
  }
}