Skip to content

Commit 843e60f

Browse files
author
carflo
committed
formatting
1 parent 8bf0c4f commit 843e60f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guide/service/nlb.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ The AWS Load Balancer Controller (LBC) supports reconciliation for Kubernetes Se
44

55
!!! info "Secure by default"
66
Since the [:octicons-tag-24: v2.2.0](https://github.com/kubernetes-sigs/aws-load-balancer-controller/releases/tag/v2.2.0) release, the LBC provisions an `internal` NLB by default.
7+
78
To create an `internet-facing` NLB, the following annotation is required on your service:
89

910
```yaml
@@ -36,7 +37,9 @@ In order for the LBC to manage the reconciliation of Kubernetes Service resource
3637
The LBC supports the `LoadBalancerClass` feature since the [:octicons-tag-24: v2.4.0](https://github.com/kubernetes-sigs/aws-load-balancer-controller/releases/tag/v2.4.0) release for Kubernetes v1.22+ clusters.
3738

3839
The `LoadBalancerClass` feature provides a `CloudProvider` agnostic way of offloading the reconciliation for Kubernetes Service resources of type `LoadBalancer` to an external controller.
40+
3941
When you specify the `spec.loadBalancerClass` to be `service.k8s.aws/nlb` on a Kubernetes Service resource of type `LoadBalancer`, the LBC takes charge of reconciliation by provisioning an NLB.
42+
4043
!!! warning
4144
- If you modify a Service resource with matching `spec.loadBalancerClass` by changing its `type` from `LoadBalancer` to anything else, the controller will cleanup the provisioned NLB for that Service.
4245

@@ -101,6 +104,7 @@ In order for the LBC to manage the reconciliation of Kubernetes Service resource
101104
service.beta.kubernetes.io/aws-load-balancer-type: external
102105
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
103106
```
107+
104108
!!! example "Example: instance mode"
105109
```yaml hl_lines="6 7"
106110
apiVersion: v1

0 commit comments

Comments
 (0)