8

Simplifying Network Comms to help debug ingress traffic.

 1 year ago
source link: https://chrisphillips-cminion.github.io/apiconnect/2023/02/06/SimpifyNetworkCommsToHelpDebug.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Simplifying Network Comms to help debug ingress traffic.

Simplifying Network Comms to help debug ingress traffic.

Feb 6, 2023 • Category APIConnect by Chris Phillips

Recently at a client we were hit with a high latency connection. In order to prove this was not a problem with API Connect we decided to execute a curl command as close to the datapower as possible.

With the API Gateway of API Connect in Kubernetse or Openshift this is simple.

  1. oc get po | grep gw
    • Select the POD Name for one of the Gateways
  2. oc exec -ti <podname> -- bash
    • This will bring up a bash shell in the same pod as the datapower.
  3. curl -vk https://127.0.0.1:9443/<API Path>
    • Execute the curl command changing the hostname and port to 127.0.0.1:9443

This will bypass any, firewall, load balancers and infrastructure.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK