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
With the integration between Azure API Management and [Azure Arc on Kubernetes](/azure/azure-arc/kubernetes/overview), you can deploy the API Management gateway component as an [extension in an Azure Arc-enabled Kubernetes cluster](/azure/azure-arc/kubernetes/extensions).
16
+
With the integration between Azure API Management and [Azure Arc on Kubernetes](/azure/azure-arc/kubernetes/overview), you can deploy the API Management gateway component as an [extension in an Azure Arc-enabled Kubernetes cluster](/azure/azure-arc/kubernetes/extensions).
17
17
18
18
Deploying the API Management gateway on an Azure Arc-enabled Kubernetes cluster expands API Management support for hybrid and multicloud environments. Enable the deployment using a cluster extension to make managing and applying policies to your Azure Arc-enabled cluster a consistent experience.
19
19
@@ -30,21 +30,23 @@ Deploying the API Management gateway on an Azure Arc-enabled Kubernetes cluster
30
30
```azurecli
31
31
az extension add --name k8s-extension
32
32
```
33
+
33
34
If you've already installed the `k8s-extension` module, update to the latest version:
34
35
35
36
```azurecli
36
37
az extension update --name k8s-extension
37
38
```
39
+
38
40
* [Create an Azure API Management instance](./get-started-create-service-instance.md).
39
41
* [Provision a gateway resource in your Azure API Management instance](./api-management-howto-provision-self-hosted-gateway.md).
40
42
41
43
## Deploy the API Management gateway extension using Azure CLI
42
44
43
45
1. In the Azure portal, navigate to your API Management instance.
44
-
1. Select **Gateways** from the side navigation menu.
46
+
1. Select **Deployment + infrastructure** > **Gateways** from the side navigation menu.
45
47
1. Select and open your provisioned gateway resource from the list.
46
48
1. In your provisioned gateway resource, click **Deployment** from the side navigation menu.
47
-
1. Make note of the **Token** and **Configuration URL** values for the next step.
49
+
1. Make note of the **Token** and **Configuration endpoint** values for the next step.
48
50
1. In Azure CLI, deploy the gateway extension using the `az k8s-extension create` command. Fill in the `token` and `configuration URL` values.
49
51
* The following example uses the `service.type='LoadBalancer'` extension configuration. See more [available extension configurations](#available-extension-configurations).
50
52
@@ -61,17 +63,19 @@ Deploying the API Management gateway on an Azure Arc-enabled Kubernetes cluster
61
63
> `-protected-` flag for `gateway.auth.token` is optional, but recommended.
62
64
63
65
1. Verify deployment status using the following CLI command:
66
+
64
67
```azurecli
65
68
az k8s-extension show --cluster-type connectedClusters --cluster-name <cluster-name> --resource-group <rg-name> --name <extension-name>
66
69
```
70
+
67
71
1. Navigate back to the **Gateways** list to verify the gateway status shows a green check mark with a node count. This status means the deployed self-hosted gateway pods:
68
72
* Are successfully communicating with the API Management service.
69
73
* Have a regular "heartbeat".
70
74
71
75
## Deploy the API Management gateway extension using Azure portal
72
76
73
77
1. In the Azure portal, navigate to your Azure Arc-connected cluster.
74
-
1. In the left menu, select **Extensions** > **+ Add** > **API Management gateway (preview)**.
78
+
1. In the left menu, select **Settings** > **Extensions + applications** > **+ Add** > **API Management gateway (preview)**.
75
79
1. Select **Create**.
76
80
1. In the **Install API Management gateway** window, configure the gateway extension:
77
81
* Select the subscription and resource group for your API Management instance.
@@ -81,7 +85,7 @@ Deploying the API Management gateway on an Azure Arc-enabled Kubernetes cluster
81
85
:::image type="content" source="./media/how-to-deploy-self-hosted-gateway-azure-arc/deploy-gateway-extension-azure-arc.png" alt-text="Screenshot of deploying the extension in Azure portal":::
82
86
83
87
1. On the **Monitoring** tab, optionally enable monitoring to upload metrics tracking requests to the gateway and backend. If enabled, select an existing **Log Analytics** workspace.
84
-
1. Select **Review + install** and then **Install**.
88
+
1. Select **Review + install**, then select **Install**.
85
89
86
90
## Available extension configurations
87
91
@@ -92,31 +96,32 @@ The self-hosted gateway extension for Azure Arc provides many configuration sett
92
96
The following extension configurations are **required**.
93
97
94
98
| Setting | Description |
95
-
| ------- | ----------- |
99
+
| ------- | ----------- |
96
100
| `gateway.configuration.uri` | Configuration endpoint in API Management service for the self-hosted gateway. |
97
-
| `gateway.auth.token` | Gateway token (authentication key) to authenticate to API Management service. Typically starts with `GatewayKey`. |
101
+
| `gateway.auth.token` | Gateway token (authentication key) to authenticate to API Management service. Typically starts with `GatewayKey`. |
98
102
| `service.type` | Kubernetes service configuration for the gateway: `LoadBalancer`, `NodePort`, or `ClusterIP`. |
99
103
100
104
### Log Analytics settings
101
105
102
106
To enable monitoring of the self-hosted gateway, configure the following Log Analytics settings:
103
107
104
108
| Setting | Description |
105
-
| ------- | ----------- |
109
+
| ------- | ----------- |
106
110
| `monitoring.customResourceId` | Azure Resource Manager resource ID for the API Management instance. |
107
-
| `monitoring.workspaceId` | Workspace ID of Log Analytics. |
111
+
| `monitoring.workspaceId` | Workspace ID of Log Analytics. |
108
112
| `monitoring.ingestionKey` | Secret with ingestion key from Log Analytics. |
109
113
110
114
> [!NOTE]
111
-
> If you haven't enabled Log Analytics:
112
-
> 1. Walk through the [Create a Log Analytics workspace](/azure/azure-monitor/logs/quick-create-workspace) quickstart.
115
+
> If you haven't enabled Log Analytics:
116
+
>
117
+
> 1. Walk through the [Create a Log Analytics workspace](/azure/azure-monitor/logs/quick-create-workspace) quickstart.
113
118
> 1. Learn where to find the [Log Analytics agent settings](/azure/azure-monitor/agents/log-analytics-agent).
114
119
115
120
## Related content
116
121
117
122
* To learn more about the self-hosted gateway, see [Azure API Management self-hosted gateway overview](self-hosted-gateway-overview.md).
118
123
* Learn more about the [observability capabilities of the Azure API Management gateways](observability.md).
119
-
* Discover all [Azure Arc-enabled Kubernetes extensions](/azure/azure-arc/kubernetes/extensions).
124
+
* Discover all [Azure Arc-enabled Kubernetes extensions](/azure/azure-arc/kubernetes/extensions).
120
125
* Learn more about [Azure Arc-enabled Kubernetes](/azure/azure-arc/kubernetes/overview).
121
126
* Learn more about guidance to [run the self-hosted gateway on Kubernetes in production](how-to-self-hosted-gateway-on-kubernetes-in-production.md).
122
-
* For configuration options, see the self-hosted gateway extension [reference](self-hosted-gateway-arc-reference.md).
127
+
* For configuration options, see the [self-hosted gateway extension reference](self-hosted-gateway-arc-reference.md).
0 commit comments