{"slug":"api-zfinia-com-x402-v1-kubernetes-service-selector-audit-280504","title":"Match every Service selector in a set of Kubernetes manifests against the pod te","host":"api.zfinia.com","method":"POST","resource":"https://api.zfinia.com/x402/v1/kubernetes-service-selector-audit","category":"code","description":"Match every Service selector in a set of Kubernetes manifests against the pod template labels of every workload in the same set. Reports a Service whose selector matches no supplied workload, which has no endpoints so every request to it fails to connect; a targetPort no matched container declares, ","price_listed":0.19,"price_asked":0.19,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":4850,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"manifests":"apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: web\n  labels:\n    app: web\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: web\n  template:\n    metadata:\n      labels:\n        app: web\n    spec:\n      containers:\n        - name: web\n          image: ghcr.io/example/web:latest\n          ports:\n            - containerPort: 8080\n          resources:\n            requests:\n              cpu: 500m\n              memory: 256M\n            limits:\n              cpu: 200m\n              memory: 512Mi\n          env:\n            - name: DATABASE_PASSWORD\n              value: hunter2\n            - name: FEATURE_FLAG\n              value: no\n---\napiVersion: v1\nkind: Service\nmetadata:\n  name: web\nspec:\n  selector:\n    app: webserver\n  ports:\n    - port: 80\n      targetPort: 9090\n"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"manifests":{"maxLength":262144,"type":"string"}},"required":["manifests"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.19,"price_match":true,"latency_ms":4850,"error":null}],"description_full":"Match every Service selector in a set of Kubernetes manifests against the pod template labels of every workload in the same set. Reports a Service whose selector matches no supplied workload, which has no endpoints so every request to it fails to connect; a targetPort no matched container declares, which fails at connection time rather than at apply time; and a workload whose own selector does not match its own pod template, which the API server rejects.","last_updated":"2026-10-04T08:24:58.994Z","schemes":["exact"]}