Skip to content

Commit 2c6cbdb

Browse files
Merge pull request #260203 from MGoedtel/bug189831
Clarified details about KV cert in AKS article
2 parents 1053ec6 + 8962570 commit 2c6cbdb

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

articles/aks/app-routing-dns-ssl.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Understand the advanced configuration options that are supported wi
44
ms.subservice: aks-networking
55
ms.custom: devx-track-azurecli
66
ms.topic: how-to
7-
ms.date: 11/21/2023
7+
ms.date: 12/04/2023
88
---
99

1010
# Set up advanced Ingress configurations with the application routing add-on
@@ -106,11 +106,11 @@ az aks approuting update -g <ResourceGroupName> -n <ClusterName> --enable-kv --a
106106
107107
## Enable Azure DNS integration
108108
109-
To enable support for DNS zones, see the following prerequisites:
109+
To enable support for DNS zones, review the following prerequisite:
110110
111-
* The app routing add-on can be configured to automatically create records on one or more Azure public and private DNS zones for hosts defined on Ingress resources. All global Azure DNS zones need to be in the same resource group, and all private Azure DNS zones need to be in the same resource group. If you don't have an Azure DNS zone, you can [create one][create-an-azure-dns-zone].
111+
* The app routing add-on can be configured to automatically create records on one or more Azure public and private DNS zones for hosts defined on Ingress resources. All public Azure DNS zones need to be in the same resource group, and all private Azure DNS zones need to be in the same resource group. If you don't have an Azure DNS zone, you can [create one][create-an-azure-dns-zone].
112112
113-
### Create a global Azure DNS zone
113+
### Create a public Azure DNS zone
114114
115115
> [!NOTE]
116116
> If you already have an Azure DNS Zone, you can skip this step.
@@ -148,11 +148,17 @@ The application routing add-on creates an Ingress class on the cluster named *we
148148
az keyvault certificate show --vault-name <KeyVaultName> -n <KeyVaultCertificateName> --query "id" --output tsv
149149
```
150150
151+
The following example output shows the certificate URI returned from the command:
152+
153+
```output
154+
https://KeyVaultName.vault.azure.net/certificates/KeyVaultCertificateName/ea62e42260f04f17a9309d6b87aceb44
155+
```
156+
151157
2. Copy the following YAML manifest into a new file named **ingress.yaml** and save the file to your local computer.
152158
153-
> [!NOTE]
154-
> Update *`<Hostname>`* with your DNS host name and *`<KeyVaultCertificateUri>`* with the ID returned from Azure Key Vault.
155-
> The *`secretName`* key in the `tls` section defines the name of the secret that contains the certificate for this Ingress resource. This certificate will be presented in the browser when a client browses to the URL defined in the `<Hostname>` key. Make sure that the value of `secretName` is equal to `keyvault-` followed by the value of the Ingress resource name (from `metadata.name`). In the example YAML, secretName will need to be equal to `keyvault-<your Ingress name>`.
159+
Update *`<Hostname>`* with the name of your DNS host and *`<KeyVaultCertificateUri>`* with the URI returned from the command to query Azure Key Vault in step 1 above. The string value for `*<KeyVaultCertificateUri>*` should only include `https://yourkeyvault.vault.azure.net/certificates/certname`. The *Certificate Version* at the end of the URI string should be omitted in order to get the current version.
160+
161+
The *`secretName`* key in the `tls` section defines the name of the secret that contains the certificate for this Ingress resource. This certificate is presented in the browser when a client browses to the URL specified in the `<Hostname>` key. Make sure that the value of `secretName` is equal to `keyvault-` followed by the value of the Ingress resource name (from `metadata.name`). In the example YAML, `secretName` needs to be equal to `keyvault-<your Ingress name>`.
156162
157163
```yml
158164
apiVersion: networking.k8s.io/v1
@@ -233,7 +239,7 @@ Learn about monitoring the Ingress-nginx controller metrics included with the ap
233239
[az-aks-install-cli]: /cli/azure/aks#az-aks-install-cli
234240
[az-aks-get-credentials]: /cli/azure/aks#az-aks-get-credentials
235241
[create-and-export-a-self-signed-ssl-certificate]: #create-and-export-a-self-signed-ssl-certificate
236-
[create-an-azure-dns-zone]: #create-a-global-azure-dns-zone
242+
[create-an-azure-dns-zone]: #create-a-public-azure-dns-zone
237243
[azure-dns-overview]: ../dns/dns-overview.md
238244
[az-keyvault-certificate-show]: /cli/azure/keyvault/certificate#az-keyvault-certificate-show
239245
[prometheus-in-grafana]: app-routing-nginx-prometheus.md

articles/aks/app-routing-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ After migrating to the application routing add-on, learn how to [monitor Ingress
121121
122122
<!-- INTERNAL LINKS -->
123123
[install-azure-cli]: /cli/azure/install-azure-cli
124-
[app-routing-dns-create]: ./app-routing-dns-ssl.md#create-a-global-azure-dns-zone
124+
[app-routing-dns-create]: ./app-routing-dns-ssl.md#create-a-public-azure-dns-zone
125125
[app-routing-dns-configure]: ./app-routing-dns-ssl.md#attach-azure-dns-zone-to-the-application-routing-add-on
126126
127127
<!-- EXTERNAL LINKS -->

0 commit comments

Comments
 (0)