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/api-management/how-to-deploy-self-hosted-gateway-kubernetes.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,19 +35,26 @@ This article describes the steps for deploying the self-hosted gateway component
35
35
5. Select the **Kubernetes** tab under **Deployment scripts**.
36
36
6. Select the **\<gateway-name\>.yml** file link and download the YAML file.
37
37
7. Select the **copy** icon at the lower-right corner of the **Deploy** text box to save the `kubectl` commands to the clipboard.
38
-
8.Paste commands to the terminal (or command) window. The first command creates a Kubernetes secret that contains the access token generated in step 4. The second command applies the configuration file downloaded in step 6 to the Kubernetes cluster and expects the file to be in the current directory.
38
+
8.When using Azure Kubernetes Service (AKS), run `az aks get-credentials --resource-group <resource-group-name> --name <resource-name> --admin`in a new terminal session.
39
39
9. Run the commands to create the necessary Kubernetes objects in the [default namespace](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/) and start self-hosted gateway pods from the [container image](https://aka.ms/apim/shgw/registry-portal) downloaded from the Microsoft Artifact Registry.
40
+
- The first step creates a Kubernetes secret that contains the access token generated in step 4. Next, it creates a Kubernetes deployment for the self-hosted gateway which uses a ConfigMap with the configuration of the gateway.
40
41
10. Run the following command to check if the deployment succeeded. Note that it might take a little time for all the objects to be created and for the pods to initialize.
41
42
42
43
```console
43
44
kubectl get deployments
44
-
NAME READY UP-TO-DATE AVAILABLE AGE
45
+
```
46
+
It should return
47
+
```console
48
+
NAME READY UP-TO-DATE AVAILABLE AGE
45
49
<gateway-name> 1/1 1 1 18s
46
50
```
47
51
11. Run the following command to check if the service was successfully created. Note that your service IPs and ports will be different.
0 commit comments