Skip to content

Commit

Permalink
fix traefik settings
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Oct 21, 2024
1 parent 35799c0 commit 113880f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
26 changes: 26 additions & 0 deletions manifest/infrastructure/traefik/env/common/traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ports:
enabled: true

extraObjects:
# ダッシュボード公開用のService
- apiVersion: v1
kind: Service
metadata:
Expand All @@ -41,3 +42,28 @@ extraObjects:
name: traefik
targetPort: 9000
protocol: TCP
# HTTPをHTTPSにリダイレクトするための設定
- apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: https-redirect
spec:
redirectScheme:
scheme: https
- apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: catch-all-http
spec:
entryPoints:
- web
routes:
- kind: Rule
match: HostRegexp(`^.+$`)
priority: -10000
middlewares:
- name: https-redirect
# ここで指定したサービスは使われない
services:
- kind: TraefikService
name: api@internal
2 changes: 1 addition & 1 deletion manifest/infrastructure/traefik/env/dev/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: traefik-dashboard
domain: traefik.drove-dev.ictsc.net
routes:
- service: traefik-api
port: traefik
port: traefik

This file was deleted.

17 changes: 0 additions & 17 deletions manifest/infrastructure/traefik/local/http-redirect-route.yaml

This file was deleted.

0 comments on commit 113880f

Please sign in to comment.