-
Notifications
You must be signed in to change notification settings - Fork 0
/
mvc-ingress-loc.yaml
47 lines (46 loc) · 1.28 KB
/
mvc-ingress-loc.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
---
apiVersion: extensions/v1beta1 #networking.k8s.io/v1beta1 #networking.k8s.io/v1
kind: Ingress
metadata:
name: mvc-ingress-host
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-staging"
kubernetes.io/ingress.class: nginx
certmanager.k8s.io/acme-challenge-type: http01
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
tls:
- secretName: letsencrypt-staging-products #products-ricafortdemos-local-tls
hosts:
- products.ricafort.net
rules:
- host: products.ricafort.net
http:
paths:
#- pathType: Prefix
# path: "/bar"
#- backend:
# serviceName: mvc-service
# servicePort: 80
# path: /mvc-service(/|$)(.*)
- backend:
serviceName: mvc-service
servicePort: 80
path: /(.*)
- backend:
serviceName: mvc-service
servicePort: 80
path: /(Delete.*)
- backend:
serviceName: mvc-service
servicePort: 80
path: /(Edit.*)
- backend:
serviceName: mvc-service
servicePort: 80
path: /(Create.*)
#service:
# name: mvc-service
# port:
# number: 80