author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|
dlepow |
api-management |
include |
05/22/2023 |
danlep |
-
Run the following command to check if the deployment succeeded. It might take a little time for all the objects to be created and for the pods to initialize.
kubectl get deployments
It should return
NAME READY UP-TO-DATE AVAILABLE AGE <gateway-name> 1/1 1 1 18s
-
Run the following command to check if the services were successfully created. Your service IPs and ports will be different.
kubectl get services
It should return
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE <gateway-name>-live-traffic ClusterIP None <none> 4290/UDP,4291/UDP 9m1s <gateway-name>-instance-discovery LoadBalancer 10.99.236.168 <pending> 80:31620/TCP,443:30456/TCP 9m1s
-
Go back to the Azure portal and select Overview.
-
Confirm that Status shows a green check mark, followed by a node count that matches the number of replicas specified in the YAML file. This status means the deployed self-hosted gateway pods are successfully communicating with the API Management service and have a regular "heartbeat." :::image type="content" source="./media/api-management-self-hosted-gateway-kubernetes-services/status.png" alt-text="Screenshot showing status of self-hosted gateway in the portal.":::
Tip
- Run the
kubectl logs deployment/<gateway-name>
command to view logs from a randomly selected pod if there's more than one. - Run
kubectl logs -h
for a complete set of command options, such as how to view logs for a specific pod or container.