{
  "id": "kubernetes/kubelet-http-healthz-failure",
  "signature": "http: TLS handshake error from 10.0.0.1:54321: remote error: tls: bad certificate",
  "signature_zh": "http: TLS 握手来自 10.0.0.1:54321 错误：远程错误：tls：证书错误",
  "regex": "http: TLS handshake error from .*: remote error: tls: bad certificate",
  "domain": "kubernetes",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Kubelet's TLS certificate for healthz endpoint is expired or mismatched, causing API server to reject connection.",
  "root_cause_type": "generic",
  "root_cause_zh": "kubelet 用于 healthz 端点的 TLS 证书过期或不匹配，导致 API 服务器拒绝连接。",
  "versions": [
    {
      "version": "kubelet v1.28",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "kubelet v1.29",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "kubelet v1.30",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Restart kubelet service without checking certificate renewal",
      "why_fails": "Restarting does not regenerate expired certificates; they must be explicitly renewed or rotated.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Disable TLS verification in kubelet config (--tls-cert-file=none)",
      "why_fails": "Disabling TLS breaks secure communication and is not supported in production.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Reinstall kubelet binary from scratch",
      "why_fails": "Reinstallation does not fix certificate expiration; the certs are stored separately.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Manually renew kubelet server certificate by running: `kubeadm init phase certs kubelet-server` and then restart kubelet.",
      "success_rate": 0.85,
      "how": "Manually renew kubelet server certificate by running: `kubeadm init phase certs kubelet-server` and then restart kubelet.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check certificate expiry: `openssl x509 -in /var/lib/kubelet/pki/kubelet-server-current.pem -text -noout | grep -A2 Validity`. If expired, delete old cert and let kubelet auto-renew via CSR.",
      "success_rate": 0.9,
      "how": "Check certificate expiry: `openssl x509 -in /var/lib/kubelet/pki/kubelet-server-current.pem -text -noout | grep -A2 Validity`. If expired, delete old cert and let kubelet auto-renew via CSR.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Update kubelet configuration to use a valid certificate from a trusted CA by setting `--tls-cert-file` and `--tls-private-key-file` in /var/lib/kubelet/config.yaml.",
      "success_rate": 0.8,
      "how": "Update kubelet configuration to use a valid certificate from a trusted CA by setting `--tls-cert-file` and `--tls-private-key-file` in /var/lib/kubelet/config.yaml.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Manually renew kubelet server certificate by running: `kubeadm init phase certs kubelet-server` and then restart kubelet.",
    "Check certificate expiry: `openssl x509 -in /var/lib/kubelet/pki/kubelet-server-current.pem -text -noout | grep -A2 Validity`. If expired, delete old cert and let kubelet auto-renew via CSR.",
    "Update kubelet configuration to use a valid certificate from a trusted CA by setting `--tls-cert-file` and `--tls-private-key-file` in /var/lib/kubelet/config.yaml."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet-tls-bootstrapping/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}