Skip to content

Commit 14a0f9a

Browse files
authored
Merge pull request #49333 from iainfoulds/akshttprouting
[AKS] Add command to enable HTTP routing on existing cluster
2 parents 996fa3a + 9ed9bac commit 14a0f9a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

articles/aks/http-application-routing.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,19 @@ The add-on deploys two components: a [Kubernetes Ingress controller][ingress] an
2929
The HTTP application routing add-on can be enabled with the Azure CLI when deploying an AKS cluster. To do so, use the [az aks create][az-aks-create] command with the `--enable-addons` argument.
3030

3131
```azurecli
32-
az aks create --resource-group myAKSCluster --name myAKSCluster --enable-addons http_application_routing
32+
az aks create --resource-group myResourceGroup --name myAKSCluster --enable-addons http_application_routing
3333
```
3434

35-
After the cluster is deployed, use the [az aks show][az-aks-show] command to retrieve the DNS zone name. This name is needed to deploy applications to the AKS cluster.
35+
You can also enable HTTP routing on an existing AKS cluster using the [az aks enable-addons][az-aks-enable-addons] command. To enable HTTP routing on an existing cluster, add the `--addons` parameter and specify *http_application_routing* as shown in the following example:
3636

3737
```azurecli
38-
$ az aks show --resource-group myAKSCluster --name myAKSCluster --query addonProfiles.httpApplicationRouting.config.HTTPApplicationRoutingZoneName -o table
38+
az aks enable-addons --resource-group myResourceGroup --name myAKSCluster --addons http_application_routing
39+
```
40+
41+
After the cluster is deployed or updated, use the [az aks show][az-aks-show] command to retrieve the DNS zone name. This name is needed to deploy applications to the AKS cluster.
42+
43+
```azurecli
44+
$ az aks show --resource-group myResourceGroup --name myAKSCluster --query addonProfiles.httpApplicationRouting.config.HTTPApplicationRoutingZoneName -o table
3945
4046
Result
4147
-----------------------------------------------------
@@ -151,7 +157,7 @@ $ curl party-clippy.471756a6-e744-4aa0-aa01-89c4d162a7a7.canadaeast.aksapp.io
151157
The HTTP routing solution can be removed using the Azure CLI. To do so run the following command, substituting your AKS cluster and resource group name.
152158

153159
```azurecli
154-
az aks disable-addons --addons http_application_routing --name myAKSCluster --resource-group myAKSCluster --no-wait
160+
az aks disable-addons --addons http_application_routing --name myAKSCluster --resource-group myResourceGroup --no-wait
155161
```
156162

157163
## Troubleshoot
@@ -228,6 +234,7 @@ For information on how to install an HTTPS-secured Ingress controller in AKS, se
228234
[az-aks-create]: /cli/azure/aks?view=azure-cli-latest#az-aks-create
229235
[az-aks-show]: /cli/azure/aks?view=azure-cli-latest#az-aks-show
230236
[ingress-https]: ./ingress.md
237+
[az-aks-enable-addons]: /cli/azure/aks#az-aks-enable-addons
231238

232239

233240
<!-- LINKS - external -->

0 commit comments

Comments
 (0)