-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsd21-equal-routing-ing.yaml
47 lines (47 loc) · 1.53 KB
/
sd21-equal-routing-ing.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: v1
kind: Service
metadata:
name: sd21
spec:
selector:
albapp: sd21
ports:
- port: 80
targetPort: 8000
type: NodePort
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: sd21
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/healthcheck-path: /health
alb.ingress.kubernetes.io/healthcheck-interval-seconds: '10'
alb.ingress.kubernetes.io/healthcheck-timeout-seconds: '9'
alb.ingress.kubernetes.io/healthy-threshold-count: '2'
alb.ingress.kubernetes.io/unhealthy-threshold-count: '10'
alb.ingress.kubernetes.io/success-codes: '200-301'
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80}]'
alb.ingress.kubernetes.io/backend-protocol: HTTP
alb.ingress.kubernetes.io/target-group-attributes: stickiness.enabled=true,stickiness.lb_cookie.duration_seconds=10
alb.ingress.kubernetes.io/load-balancer-name: sd21
alb.ingress.kubernetes.io/actions.weighted-routing: >
{"type":"forward","forwardConfig":{"targetGroups":[{"serviceName":"sd21","servicePort":80,"weight":100}],"targetGroupStickinessConfig":{"enabled":true,"durationSeconds":200}}}
labels:
app: sd21-multicompute
spec:
ingressClassName: alb
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: weighted-routing
port:
name: use-annotation