forked from Azure/application-gateway-kubernetes-ingress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress-complex.yaml
50 lines (48 loc) · 1.14 KB
/
ingress-complex.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: websocket-ingress
annotations:
kubernetes.io/ingress.class: azure/application-gateway
appgw.ingress.kubernetes.io/ssl-redirect: "true"
spec:
tls:
- hosts:
- ws.contoso.com
secretName: testsecret-tls
rules:
- host: ws.contoso.com
http:
paths:
- backend:
service:
name: websocket-service
port:
number: 80
- host: ftp.contoso.com
http:
paths:
- path: /
backend:
service:
name: websocket-service
port:
number: 80
pathType: Exact
- host: www.contoso.com
http:
paths:
- path: /store/*
backend:
service:
name: web-service
port:
number: 80
pathType: Prefix
- path: /static/*
backend:
service:
name: static-content-service
port:
number: 8765
pathType: Prefix