2 Answers
- Newest
- Most votes
- Most comments
1
This has created Application type (internal facing) using Ingress.
I have made two changes, have added these two annotations
-
alb.ingress.kubernetes.io/load-balancer-type: nlb -
kubernetes.io/ingress.class: "alb"
Wondering how to deploy an internal facing NLB using Ingress manifest file?
0
Ingress manifest file is used to create ALB (L7 load balancer), not NLB (L4 load balancer).
You can read more about it here and here.
To create (internal) NLB you need to use the Service manifest instead with type: LoadBalancer. for example:
apiVersion: v1
kind: Service
metadata:
name: my-internal-nlb-service
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: external
service.beta.kubernetes.io/aws-load-balancer-scheme: "internal" # Make the NLB internal
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: my-app
Relevant content
- asked 2 years ago
