Skip to content

Commit 60f38c1

Browse files
nodeSelector example
1 parent cf7c0d1 commit 60f38c1

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

articles/application-gateway/for-containers/alb-controller-helm-chart.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,33 @@ The following parameters are supported for configuration during installation:
5050
| albController.namespace | string | `"azure-alb-system"` | Namespace to deploy ALB Controller components in. |
5151
| albController.securityPolicyFeatureFlag | bool | `false` | Enable Application Load Balancer Security Policy Resource (WAF Preview). |
5252

53+
## nodeSelector
54+
55+
nodeSelector follows Kubernetes' implementation as defined [here](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
56+
57+
nodeSelector will only provision ALB Controller pods to nodes with a defined label.
58+
59+
In this example, we will label a set of nodes with a node label called `albController`.
60+
61+
1. Label each node you desire to run the ALB controller pods.
62+
63+
`kubectl label nodes <node-name> albController=true`
64+
65+
2. Specify the nodeSelector via the helm install command using the following example:
66+
67+
```bash
68+
HELM_NAMESPACE='<namespace for deployment>'
69+
CONTROLLER_NAMESPACE='azure-alb-system'
70+
VERSION='<latest_version>'
71+
az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_NAME
72+
helm install alb-controller oci://mcr.microsoft.com/application-lb/charts/alb-controller \
73+
--namespace $HELM_NAMESPACE \
74+
--version $VERSION \
75+
--set albController.namespace=$CONTROLLER_NAMESPACE \
76+
--set albController.podIdentity.clientID=$(az identity show -g $RESOURCE_GROUP -n azure-alb-identity --query clientId -o tsv)
77+
--set nodeSelector.albController=true
78+
```
79+
5380
## Tolerations
5481

5582
Tolerations follow Kubernetes' implementation as defined [here](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/).

0 commit comments

Comments
 (0)