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
For more information, see [Use a static public IP address and DNS label with the AKS load balancer][aks-static-ip].
174
174
175
-
## Use a dynamic IP address
175
+
####Use a dynamic public IP address
176
176
177
-
An Azure public IP address is created for the ingress controller upon creation. This public IP address is static for the lifespan of the ingress controller. If you delete the ingress controller, the public IP address assignment will be lost. If you create another ingress controller, a new public IP address will be assigned.
177
+
An Azure public IP address is created for your ingress controller upon creation. The public IP address is static for the lifespan of your ingress controller. The public IP address does *not* remain if you delete your ingress controller. If you create a new ingress controller, it will be assigned a new public IP address.
178
178
179
-
To get the public IP address, use the `kubectl get service` command.
179
+
Use the `kubectl get service` command to get the public IP address for your ingress controller.
180
180
181
181
```console
182
182
kubectl --namespace ingress-basic get services -o wide -w nginx-ingress-ingress-nginx-controller
183
183
```
184
184
185
-
The example output shows the details about the ingress controller.
185
+
Your output should look similar to the following example output:
186
186
187
187
```console
188
188
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
If you're using a custom domain, you need to add an *A* record to your DNS zone. Otherwise, you need to configure the public IP address with an FQDN.
194
+
If you're using a custom domain, you need to add an *A* record to your DNS zone. If you're not using a custom domain, you can configure the public IP address with an FQDN.
Optionally, you can configure an FQDN for the ingress controller IP address instead of a custom domain. Your FQDN should follow this form: `<CUSTOM LABEL>.<AZURE REGION NAME>.cloudapp.azure.com`. You can configure it using one of the following methods:
227
+
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
228
229
-
* Set the DNS label using the Azure CLI or Azure PowerShell.
229
+
You can configure your FQDN using one of the following methods:
230
+
231
+
* Set the DNS label using Azure CLI or Azure PowerShell.
230
232
* Set the DNS label using Helm chart settings.
231
233
232
-
#### Method 1: Set the DNS label using the Azure CLI or Azure PowerShell
234
+
For more information, see [Public IP address DNS name labels](../virtual-network/ip-services/public-ip-addresses.md#dns-name-label).
235
+
236
+
#### Set the DNS label using Azure CLI or Azure PowerShell
#### Method 2: Set the DNS label using Helm chart settings
276
+
#### Set the DNS label using Helm chart settings
273
277
274
-
You can pass an annotation setting to your Helm chart configuration by 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.
278
+
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.
275
279
276
280
The following example shows how to update this setting after the controller has been deployed.
0 commit comments