devperf/k8s/redirect-https-middleware.yaml
zyc d8204c8572
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
feat: HTTP→HTTPS 自动跳转
- 新增 redirect-https-middleware.yaml(Traefik Middleware)
- Ingress 加 traefik.ingress.kubernetes.io/router.middlewares annotation
- CI 流水线在 Ingress 之前 apply middleware

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 14:50:06 +08:00

9 lines
144 B
YAML

apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: redirect-https
spec:
redirectScheme:
scheme: https
permanent: true