31 lines
552 B
YAML
31 lines
552 B
YAML
|
apiVersion: traefik.containo.us/v1alpha1
|
||
|
kind: IngressRoute
|
||
|
metadata:
|
||
|
name: simpleingressroute
|
||
|
spec:
|
||
|
entrypoints:
|
||
|
- 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
|
||
|
spec:
|
||
|
entrypoints:
|
||
|
- websecure
|
||
|
routes:
|
||
|
- match: Host(`your.domain.com`) && PathPrefix(`/tls`)
|
||
|
kind: Rule
|
||
|
services:
|
||
|
- name: whoami
|
||
|
port: 80
|
||
|
tls:
|
||
|
secretName: ""
|