traefik/integration/fixtures/k8s/03-ingressroute-containous.yml

94 lines
1.6 KiB
YAML
Raw Normal View History

2023-03-20 14:38:08 +00:00
# This IngressRoute is expected to be ignored, because it already declared in API GroupVersion "traefik.io/v1alpha1".
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: test.route
namespace: default
labels:
app: traefik
spec:
entryPoints:
- web
routes:
- match: Host(`collision`)
kind: Rule
priority: 12
services:
- name: whoami
port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: test.route.containous
namespace: default
labels:
app: traefik
spec:
entryPoints:
- web
routes:
- match: Host(`bar.com`) && PathPrefix(`/foo`)
kind: Rule
priority: 12
middlewares:
- name: stripprefix-containous
services:
- name: whoami
port: 80
tls:
options:
name: mytlsoption-containous
store:
name: mytlsstore-containous
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: stripprefix-containous
namespace: default
labels:
app: traefik
spec:
stripPrefix:
prefixes:
- /tobestripped
---
apiVersion: traefik.containo.us/v1alpha1
kind: TLSOption
metadata:
name: mytlsoption-containous
namespace: default
labels:
app: traefik
spec:
minVersion: VersionTLS12
sniStrict: true
cipherSuites:
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_RSA_WITH_AES_256_GCM_SHA384
---
apiVersion: traefik.containo.us/v1alpha1
kind: TLSStore
metadata:
name: mytlsstore-containous
namespace: default
labels:
app: traefik
spec:
defaultCertificate:
secretName: tls-cert