You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/aks/ingress-tls.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,7 +225,10 @@ If you're using a custom domain, you need to add an *A* record to your DNS zone.
225
225
226
226
### Configure an FQDN for your ingress controller
227
227
228
-
Optionally, you can configure an FQDN for the ingress controller IP address instead of a custom domain by setting a DNS label. Your FQDN should follow this form: `<CUSTOM LABEL>.<AZURE REGION NAME>.cloudapp.azure.com`. Your DNS label must be unique within its Azure location.
228
+
Optionally, you can configure an FQDN for the ingress controller IP address instead of a custom domain by setting a DNS label. Your FQDN should follow this form: `<CUSTOM DNS LABEL>.<AZURE REGION NAME>.cloudapp.azure.com`.
229
+
230
+
> [!IMPORTANT]
231
+
> Your DNS label must be unique within its Azure location.
229
232
230
233
You can configure your FQDN using one of the following methods:
231
234
@@ -236,20 +239,22 @@ For more information, see [Public IP address DNS name labels](../virtual-network
236
239
237
240
#### Set the DNS label using Azure CLI or Azure PowerShell
238
241
242
+
Make sure to replace `<DNS_LABEL>` with your unique DNS label.
243
+
239
244
### [Azure CLI](#tab/azure-cli)
240
245
241
246
```azurecli
242
247
# Public IP address of your ingress controller
243
248
IP="MY_EXTERNAL_IP"
244
249
245
250
# Name to associate with public IP address
246
-
DNSNAME="demo-aks-ingress"
251
+
DNSLABEL="<DNS_LABEL>"
247
252
248
253
# Get the resource-id of the public IP
249
254
PUBLICIPID=$(az network public-ip list --query "[?ipAddress!=null]|[?contains(ipAddress, '$IP')].[id]" --output tsv)
250
255
251
256
# Update public IP address with DNS name
252
-
az network public-ip update --ids $PUBLICIPID --dns-name $DNSNAME
257
+
az network public-ip update --ids $PUBLICIPID --dns-name $DNSLABEL
253
258
254
259
# Display the FQDN
255
260
az network public-ip show --ids $PUBLICIPID --query "[dnsSettings.fqdn]" --output tsv
You can pass an annotation setting to your Helm chart configuration using the `--set controller.service.annotations."service\.beta\.kubernetes\.io/azure-dns-label-name"` parameter. This parameter can be set when the ingress controller is first deployed, or it can be configured later.
280
285
281
-
The following example shows how to update this setting after the controller has been deployed.
286
+
The following example shows how to update this setting after the controller has been deployed. Make sure to replace `<DNS_LABEL>` with your unique DNS label.
0 commit comments