From 5721b0ff3263adc3b4aaba2d1bf68b1165a123c3 Mon Sep 17 00:00:00 2001 From: shysank Date: Wed, 24 Mar 2021 19:15:31 +0530 Subject: [PATCH] add doc for node outbound lb --- docs/book/src/SUMMARY.md | 1 + docs/book/src/topics/node-outbound-lb.md | 64 ++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 docs/book/src/topics/node-outbound-lb.md diff --git a/docs/book/src/SUMMARY.md b/docs/book/src/SUMMARY.md index 1fe9e81e70f..01187d28f86 100644 --- a/docs/book/src/SUMMARY.md +++ b/docs/book/src/SUMMARY.md @@ -18,6 +18,7 @@ - [Machine Pools (VMSS)](./topics/machinepools.md) - [Managed Clusters (AKS)](./topics/managedcluster.md) - [Multitenancy](./topics/multitenancy.md) + - [Node Ooutbound Load Balancer](./topics/node-outbound-lb.md) - [Spot Virtual Machines](./topics/spot-vms.md) - [Virtual Networks](./topics/custom-vnet.md) - [Windows](./topics/windows.md) diff --git a/docs/book/src/topics/node-outbound-lb.md b/docs/book/src/topics/node-outbound-lb.md new file mode 100644 index 00000000000..37484847fd7 --- /dev/null +++ b/docs/book/src/topics/node-outbound-lb.md @@ -0,0 +1,64 @@ +# Node Outbound Load Balancer + +This document describes how to configure your clusters' node outbound load balancer. + +### Public Clusters + +For public clusters ie. clusters with api server load balancer type set to `Public`, CAPZ automatically configures a node outbound load balancer with the default settings. + +To provider custom settings for the node outbound load balacer, use the `nodeOutboundLB` section in cluster configuration. + +Here is an example of a node outbound load balancer with `frontendIPsCount` set to 3. CAPZ will read this value and create 3 front end ips for this load balancer. + +```yaml +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 +kind: AzureCluster +metadata: + name: my-public-cluster + namespace: default +spec: + location: eastus + networkSpec: + apiServerLB: + type: Public + nodeOutboundLB: + frontendIPsCount: 3 +``` + + + +### Private Clusters + +For private clusters ie. clusters with api server load balancer type set to `Internal`, CAPZ does not create a node outbound load balancer by default. +To create a node outbound load balancer, include the `nodeOutboundLB` section with the desired settings. + +Here is an example of configuring a node outbound load balancer with 1 front end ip for a private cluster: + +```yaml +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 +kind: AzureCluster +metadata: + name: my-public-cluster + namespace: default +spec: + location: eastus + networkSpec: + apiServerLB: + type: Internal + nodeOutboundLB: + frontendIPsCount: 1 +``` + + \ No newline at end of file