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?
answered 14 days ago
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
- Accepted Answerasked 4 months ago
- asked 3 months ago
- asked a year ago
- AWS OFFICIALUpdated 3 months ago
- How can I troubleshoot issues when I use the AWS Load Balancer Controller to create a load balancer?AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago