first import
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
---
|
||||
# TODO: Named port for service
|
||||
# but currently unsupported on my k3s cluster https://github.com/traefik/traefik/pull/7668
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: "cv-websecure"
|
||||
spec:
|
||||
entryPoints:
|
||||
- "websecure"
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`cv.opti.cabillot.eu`)
|
||||
middlewares: []
|
||||
priority: 10
|
||||
services:
|
||||
- kind: Service
|
||||
name: "cv"
|
||||
port: 80
|
||||
tls:
|
||||
secretName: "cvcabilloteu-tls"
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: "cv-web"
|
||||
spec:
|
||||
entryPoints:
|
||||
- "web"
|
||||
routes:
|
||||
- match: Host(`cv.opti.cabillot.eu`)
|
||||
kind: Rule
|
||||
priority: 10
|
||||
services:
|
||||
# in this IngressRoute the service will be never called
|
||||
# because of the redirect middleware BUT DO NOT REMOVE !
|
||||
- kind: Service
|
||||
name: "cv"
|
||||
port: 80
|
||||
middlewares:
|
||||
- name: "httpsredirect"
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: "httpsredirect"
|
||||
spec:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: true
|
||||
Reference in New Issue
Block a user