{
  "id": "kubernetes/ingress-controller-no-endpoints",
  "signature": "Warning: No endpoints available for service 'default/my-service'",
  "signature_zh": "警告：服务'default/my-service'没有可用的端点",
  "regex": "Warning: No endpoints available for service '([^']+)'",
  "domain": "kubernetes",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The Ingress controller cannot find any healthy pod endpoints for the referenced service, often because the service selector doesn't match any pods or pods are not ready.",
  "root_cause_type": "generic",
  "root_cause_zh": "Ingress控制器无法找到引用服务的健康Pod端点，通常是因为服务选择器没有匹配到任何Pod或Pod未就绪。",
  "versions": [
    {
      "version": "nginx-ingress-controller v1.9.5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kubernetes v1.27.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kubernetes v1.28.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Delete and recreate the Ingress resource",
      "why_fails": "The Ingress resource is not the problem; the underlying service or pod configuration is misaligned. Recreating Ingress doesn't fix the endpoint mismatch.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase the number of replicas in the deployment",
      "why_fails": "More replicas won't help if the service selector doesn't match the pod labels or if pods are failing readiness probes.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the service selector matches the pod labels: `kubectl get service my-service -n default -o jsonpath='{.spec.selector}'` and `kubectl get pods -n default --show-labels | grep my-service`",
      "success_rate": 0.9,
      "how": "Verify the service selector matches the pod labels: `kubectl get service my-service -n default -o jsonpath='{.spec.selector}'` and `kubectl get pods -n default --show-labels | grep my-service`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check pod readiness: `kubectl get pods -n default -l app=my-service -o wide` and ensure readiness probes pass. If pods are not ready, fix the probe configuration in the deployment.",
      "success_rate": 0.85,
      "how": "Check pod readiness: `kubectl get pods -n default -l app=my-service -o wide` and ensure readiness probes pass. If pods are not ready, fix the probe configuration in the deployment.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the service selector matches the pod labels: `kubectl get service my-service -n default -o jsonpath='{.spec.selector}'` and `kubectl get pods -n default --show-labels | grep my-service`",
    "Check pod readiness: `kubectl get pods -n default -l app=my-service -o wide` and ensure readiness probes pass. If pods are not ready, fix the probe configuration in the deployment."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.87,
  "resolvable": "true",
  "first_seen": "2023-11-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}