-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojectALBIngress_query.yaml
30 lines (29 loc) · 1.23 KB
/
projectALBIngress_query.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
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: alb-ingress
namespace: "project-alb"
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/subnets: public-subnets
alb.ingress.kubernetes.io/security-groups: sec-grp
alb.ingress.kubernetes.io/conditions.rolling-front-green: '[{"Field":"query-string","QueryStringConfig":{"Values":[{"Key":"group","Value":"green"}]}}]'
alb.ingress.kubernetes.io/conditions.forward-multiple-tg: '[{"Field":"query-string","QueryStringConfig":{"Values":[{"Key":"group","Value":"blue"}]}}]'
alb.ingress.kubernetes.io/actions.forward-multiple-tg: '{"Type":"forward","ForwardConfig":{"TargetGroups":[{"ServiceName":"rolling-front-blue","ServicePort":"80","Weight":100},{"ServiceName":"rolling-front-green","ServicePort":"8080","Weight":0}]}}'
labels:
app: project-ingress
spec:
rules:
- http:
paths:
- backend:
serviceName: rolling-front-green
servicePort: 8080
- backend:
serviceName: forward-multiple-tg
servicePort: use-annotation
- path: /*
backend:
serviceName: rolling-front-blue
servicePort: 80