doc AWS internet LB + add to LB test

This commit is contained in:
Adrian Stobbe 2023-07-11 18:14:13 +02:00
parent 6e708babfb
commit 62b0a853e4
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,8 @@ kind: Service
metadata:
name: whoami
namespace: lb-test
annotations:
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
spec:
selector:
app: whoami

View File

@ -1 +1,11 @@
# Expose services
## Internet-facing LB service on AWS
To expose your application service externally you might want to use a Kubernetes Service of type `LoadBalancer`. On AWS, load-balancing is achieved through the [AWS Load Balancing Controller](https://kubernetes-sigs.github.io/aws-load-balancer-controller) as in the managed EKS.
Since recent versions, the controller deploy an internal LB by default requiring to set an annotation `service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing` in order to have an internet-facing LB. For more details, see the [official docs](https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/service/nlb/).
:::caution
Before terminating the cluster, all LB backed services should be deleted, so that the controller can cleanup the related resources.
:::