S
S
sailorpapay2020-11-12 17:46:35
Load balancing
sailorpapay, 2020-11-12 17:46:35

How to add rule source ip to kubernetes ingress alb?

How to add rule source ip to kubernetes ingress alb? (in .yaml format)
5fad4ac77e3c5294252939.png

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

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2020-11-12
@Viji

there is an example here:
https://kubernetes-sigs.github.io/aws-load-balance...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question