traefik/docs/content/user-guides/crd-acme/04-ingressroutes.yml

33 lines
588 B
YAML
Raw Normal View History

2023-03-20 14:38:08 +00:00
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: simpleingressroute
2019-10-07 13:20:06 +00:00
namespace: default
spec:
entryPoints:
- web
routes:
2020-03-13 21:50:05 +00:00
- match: Host(`your.example.com`) && PathPrefix(`/notls`)
kind: Rule
services:
- name: whoami
port: 80
---
2023-03-20 14:38:08 +00:00
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: ingressroutetls
2019-10-07 13:20:06 +00:00
namespace: default
spec:
entryPoints:
- websecure
routes:
2020-03-13 21:50:05 +00:00
- match: Host(`your.example.com`) && PathPrefix(`/tls`)
kind: Rule
services:
- name: whoami
port: 80
tls:
2020-02-17 10:04:04 +00:00
certResolver: myresolver