Connect with the API Catalog using Postman Insights Agent
The Postman Insights Agent monitors your Kubernetes services and automatically populates your API Catalog. The recommended way to get started is Discovery Mode — deploy the agent once and it finds and registers your services automatically, with no per-service configuration needed.
Prefer to configure Postman first?
See Workspace Mode to create a workspace and environment in Postman before deploying.
Prerequisites
- A Postman API key with required permissions
- Kubernetes cluster v1.19+
kubectlconfigured for your cluster
Deploy with Discovery Mode
-
Create the namespace and API key secret. The agent authenticates with Postman using your API key. Store it as a Kubernetes Secret so it never appears in plain text in the manifest:
-
Download the base DaemonSet manifest,
postman-insights-agent-daemonset.yaml. -
Edit the manifest for Discovery Mode. The downloaded manifest requires three changes before it works with Discovery Mode. Open the file and apply the following edits:
-
Enable Discovery Mode. Find the
argssection and add--discovery-mode:--discovery-modeand--repro-modeserve different purposes and are not alternatives. Keep any other flags inargsthat your deployment already uses. Just add--discovery-modeto enable service discovery. -
Set your cluster name. Discovery Mode requires a unique cluster name to identify your services across environments. Add it to the
envsection:The cluster name is combined with the namespace and workload name to build a unique service identifier (
cluster/namespace/workload). Choose a name that is stable and unique. Changing it later will cause services to appear as new entries. -
Wire the API key. Reference the Secret you created in Step 1. Add this to the
envsection alongside the cluster name:After all three changes, the relevant part of your manifest should look like this:
-
-
Apply the manifest.
-
Verify the deployment.
Check that the agent pods are running on each node:
Then, inspect the logs to confirm services are being discovered:
You can expect to see log lines indicating pods are being discovered and services are being registered with Postman. If pods aren’t appearing, see Troubleshooting.
-
Complete onboarding in Postman. From Home, click API Catalog > Service Discovery > Postman Insights Catalog. Then, select the service and the environment to integrate into API Catalog.
The Postman API key must belong to a user with write access to target workspaces (workspace Admin or Super Admin). The agent creates and links applications on behalf of this user.
Discovered services have a traffic capture window. If a service isn’t onboarded in the Postman app within that window, the agent pauses capture for that service. Completing onboarding lifts the restriction. See Traffic TTL for details.
Optional: Limit discovery to specific namespaces
By default, the agent discovers pods in all namespaces except a built-in exclusion list (for example, Kubernetes system, monitoring, GitOps tools). To capture only specific namespaces, add --include-namespaces to the args section in the manifest:
For the full list of filtering options — namespace exclusions, label filtering, per-pod opt-out — see the Pod Filtering reference.
Choosing an approach
For sidecar injection, Workspace Mode instructions, advanced filtering, environment variable reference, and troubleshooting, see Insights Agent deployment modes.