-
Notifications
You must be signed in to change notification settings - Fork 0
/
kong-demo-ingress.yaml
70 lines (70 loc) · 1.58 KB
/
kong-demo-ingress.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: demo
annotations:
konghq.com/strip-path: "true"
kubernetes.io/ingress.class: kong
spec:
rules:
- http:
paths:
- path: /foo
pathType: Prefix
backend:
service:
name: echo
port:
number: 80
- path: /auth
pathType: Prefix
backend:
service:
name: hydra-service
port:
number: 9000
- path: /auth-admin
pathType: Prefix
backend:
service:
name: hydra-service
port:
number: 9001
- path: /
pathType: Prefix
backend:
service:
name: konga-service
port:
number: 1337
# - path: /
# backend:
# serviceName: jaeger-query
# servicePort: 80
# - path: /auth-admin
# backend:
# serviceName: hydra-service
# servicePort: 9001
# apiVersion: networking.k8s.io/v1beta1
# kind: Ingress
# metadata:
# name: demo
# annotations:
# nginx.ingress.kubernetes.io/rewrite-target: /$2
# # kubernetes.io/ingress.class: kong
# spec:
# rules:
# - http:
# paths:
# - path: /foo(/|$)(.*)
# backend:
# serviceName: echo
# servicePort: 80
# - path: /auth
# backend:
# serviceName: hydra-service
# servicePort: 9000
# # - path: /auth-admin
# # backend:
# # serviceName: hydra-service
# # servicePort: 9001