Как добавить rule source ip в kubernetes ingress alb? (в формате .yaml)
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: "test"
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:eu-west-3:494b89c637f636a
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80,"HTTPS": 443}]'
labels:
app: test
spec:
rules:
- http:
paths:
- path: /*
backend:
serviceName: "test1"
servicePort: 80
- host: test.com
http:
paths:
- backend:
serviceName: "test"
servicePort: 80