2019-03-27 14:16:04 +00:00
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: simpleingressroute
|
2019-10-07 13:20:06 +00:00
|
|
|
namespace: default
|
2019-03-27 14:16:04 +00:00
|
|
|
spec:
|
2019-04-15 09:14:05 +00:00
|
|
|
entryPoints:
|
2019-03-27 14:16:04 +00:00
|
|
|
- web
|
|
|
|
routes:
|
|
|
|
- match: Host(`your.domain.com`) && PathPrefix(`/notls`)
|
|
|
|
kind: Rule
|
|
|
|
services:
|
|
|
|
- name: whoami
|
|
|
|
port: 80
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: ingressroutetls
|
2019-10-07 13:20:06 +00:00
|
|
|
namespace: default
|
2019-03-27 14:16:04 +00:00
|
|
|
spec:
|
2019-04-15 09:14:05 +00:00
|
|
|
entryPoints:
|
2019-03-27 14:16:04 +00:00
|
|
|
- websecure
|
|
|
|
routes:
|
|
|
|
- match: Host(`your.domain.com`) && PathPrefix(`/tls`)
|
|
|
|
kind: Rule
|
|
|
|
services:
|
|
|
|
- name: whoami
|
|
|
|
port: 80
|
2019-07-19 09:52:04 +00:00
|
|
|
tls:
|
|
|
|
certResolver: default
|