Skip to content

Commit 8f3594d

Browse files
authored
Merge pull request #101861 from JFolberth/patch-10
Update instructions
2 parents c7e05b9 + ffbd443 commit 8f3594d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

articles/api-management/how-to-deploy-self-hosted-gateway-kubernetes.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,26 @@ This article describes the steps for deploying the self-hosted gateway component
3535
5. Select the **Kubernetes** tab under **Deployment scripts**.
3636
6. Select the **\<gateway-name\>.yml** file link and download the YAML file.
3737
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.
3939
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.
4041
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.
4142

4243
```console
4344
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
4549
<gateway-name> 1/1 1 1 18s
4650
```
4751
11. Run the following command to check if the service was successfully created. Note that your service IPs and ports will be different.
4852

4953
```console
5054
kubectl get services
55+
```
56+
It should return
57+
```console
5158
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
5259
<gateway-name> LoadBalancer 10.99.236.168 <pending> 80:31620/TCP,443:30456/TCP 9m1s
5360
```

0 commit comments

Comments
 (0)