## Problem ComfyUI pod restarting 273+ times over 45h. Startup probe failed every time. ## Root Cause ai-dock image runs ComfyUI on port 18188 (adds 10000 to configured port), not 8188. Caddy does NOT proxy 8188->18188. ## Fix - deployment: containerPort, probes -> 18188 - service: targetPort -> 18188 - ingress: TLS at comfyui.riotpiao.com, WebSocket headers - CoreDNS: rewrite comfyui.riotpiao.com ## Post-merge CoreDNS rewrite needs terraform apply + make apply-cp. Cloudflare DNS: add CNAME comfyui.riotpiao.com -> tunnel.Reviewed-on: #44 Co-authored-by: rock <[email protected]>
34 lines
1009 B
YAML
34 lines
1009 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: comfyui
|
|
namespace: comfyui
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
|
# WebSocket support for ComfyUI's live preview
|
|
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
|
|
nginx.ingress.kubernetes.io/upstream-hash-by: "$remote_addr"
|
|
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- secretName: comfyui-tls
|
|
hosts:
|
|
- comfyui.riotpiao.com
|
|
rules:
|
|
- host: comfyui.riotpiao.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: comfyui
|
|
port:
|
|
number: 80
|