1 Answer
- Newest
- Most votes
- Most comments
0
Have you tried exploring Ingress Groups option ?
alb.ingress.kubernetes.io/group.name: my-group
From the below documentation :
https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html
As sample yaml could be like the following where ingress for applicationA would route to target group
applicationA-group
and similar for applicationB going to
applicationB-group
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-name
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
spec:
rules:
- http:
paths:
- path: /applicationA
pathType: Prefix
backend:
service:
name: applicationA-service
port:
number: 80
annotations:
alb.ingress.kubernetes.io/group.name: applicationA-group
- path: /applicationB
pathType: Prefix
backend:
service:
name: applicationB-service
port:
number: 80
annotations:
alb.ingress.kubernetes.io/group.name: applicationB-group
answered 13 days ago
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago