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
+11-4Lines changed: 11 additions & 4 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.
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
-
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.
38
+
8. In a new terminal session run `az aks get-credentials --resource-group RESOURCE GROUP NAME --name AKS RESOURCE NAME --admin`
39
+
10. 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.
40
+
11. 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.
41
+
12. 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