Logo: K8s Cert Manager Troubleshooting

K8s Cert Manager Troubleshooting

Organisatioun
k8s-servant
k8s-cert-manager-troubleshooting

Benotzt dës Skill, wann cert-manager e Certificat a Kubernetes net ausstellt oder erneiert: e Certificate bleift READY False, e CertificateRequest ass Pending, Denied oder Failed, en Issuer oder ClusterIssuer ass net Ready („Error getting keypair for CA issuer“), „Referenced \"Issuer\" not found“, ACME Orders oder Challenges hänke bei Pending (HTTP-01, DNS-01, Rate Limits), e Certificat ass ofgelaf oder gouf net erneiert, oder beim Uleeë vu Ressourcen kënnt „failed calling webhook \"webhook.cert-manager.io\"“. Ënnersicht de Problem mat kubectl get, describe, events a Logs a proposéiert Léisungen. Liest fir d'éischt a freet, éier eppes geännert gëtt.

Iwwersiicht

Editeurk8s-servant
Repositoryk8s-skills
Skill-Nummk8s-cert-manager-troubleshooting
Stären
36
Forks
7
Matgeliwwert Dateien
4
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    k8s-servant huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill K8s Cert Manager Troubleshooting an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-cert-manager-troubleshooting
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/k8s-servant/k8s-skills.git /tmp/k8s-skills
mkdir -p .claude/skills
cp -r /tmp/k8s-skills/skills/k8s-cert-manager-troubleshooting .claude/skills/k8s-cert-manager-troubleshooting
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert K8s Cert Manager Troubleshooting an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet K8s Cert Manager Troubleshooting automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass K8s Cert Manager Troubleshooting net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

cert-manager troubleshooting

Find out why cert-manager does not issue or renew a certificate, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.

cert-manager works in a chain. A Certificate says what is wanted. cert-manager creates a CertificateRequest for each issuance, which an Issuer (one namespace) or ClusterIssuer (whole cluster) signs. For ACME issuers (Let's Encrypt and others) the request also gets an Order with one Challenge per domain. Follow the chain from the Certificate and stop at the first object that is not Ready.

The commands use placeholders: my-namespace, my-app-tls (the Certificate), my-issuer and my-cluster-issuer. Replace them with the real names. The cert-manager namespace and Deployment names are those of the default install; a Helm install may use other names (find them with the first command of step 5).

Never read Secrets: not the certificate's Secret, not the key pair of a CA issuer, not an ACME account key, not DNS provider credentials. The status of the cert-manager resources says whether a Secret is missing or wrong. For the same reason do not use cmctl status certificate or cmctl inspect secret: both read the certificate's Secret.

When to use

  • A Certificate shows READY False, or an Ingress or Gateway still serves an old or self-signed certificate.
  • A CertificateRequest is Pending, Denied or Failed; an Order or Challenge stays pending.
  • An Issuer or ClusterIssuer is not Ready.
  • A certificate expired or did not renew.
  • Creating or changing any cert-manager resource fails with failed calling webhook "webhook.cert-manager.io".

Hand-offs, by skill name. When the evidence points elsewhere, continue with that skill; if it is not installed, keep going with the steps here and tell the user which skill would help:

  • The cert-manager pods themselves crash or stay Pending: k8s-workload-troubleshooting.
  • An HTTP-01 challenge cannot be reached through the Ingress, Gateway or Service, or a NetworkPolicy blocks it: k8s-network-troubleshooting.

Investigate

Work through the steps in order. Stop when you have the cause and its evidence.

1. See the Certificate: Ready, the issuer it points at, and its conditions and events. Issuing True means an issuance is in progress.

bash
kubectl get certificate -n my-namespace
kubectl describe certificate my-app-tls -n my-namespace
kubectl get certificate my-app-tls -n my-namespace -o jsonpath='{.spec.issuerRef}{"\n"}{.status.conditions}{"\n"}'

2. See its CertificateRequests. The newest one says why issuance waits or failed: the Ready condition's reason and message, and Approved or Denied.

bash
kubectl get certificaterequest -n my-namespace
kubectl describe certificaterequest -n my-namespace
kubectl events -n my-namespace

3. See the issuer the request names. An Issuer lives in the Certificate's namespace; a ClusterIssuer has no namespace. The built-in view role cannot read ClusterIssuers; if the command is forbidden, say so, and read the issuer's state from the CertificateRequest message ("Referenced issuer does not have a Ready status condition" means it exists and is not Ready).

bash
kubectl get issuer -n my-namespace
kubectl describe issuer my-issuer -n my-namespace
kubectl get clusterissuer
kubectl describe clusterissuer my-cluster-issuer

4. For an ACME issuer, see the Order and the Challenges. A Challenge's State and Reason say what the ACME server or cert-manager's own self-check saw.

bash
kubectl get orders -n my-namespace
kubectl describe order -n my-namespace
kubectl get challenges -n my-namespace
kubectl describe challenge -n my-namespace

5. If nothing progresses, or creating a resource fails, check cert-manager itself: its three Deployments, the webhook's endpoints and the controller's logs.

bash
kubectl get deployments -A -l app.kubernetes.io/instance=cert-manager
kubectl get pods -n cert-manager -o wide
kubectl get endpointslices -n cert-manager -l kubernetes.io/service-name=cert-manager-webhook
kubectl logs -n cert-manager deployment/cert-manager --tail=100 | grep my-app-tls
kubectl logs -n cert-manager deployment/cert-manager-webhook --tail=50

6. Open the matching reference and follow its steps:

What you seeReference
IssuerNotFound, IssuerNotReady, ErrGetKeyPair, Denied, Failed, a request that never comesreferences/issuers-and-requests.md
Order or Challenge pending, invalid or errored, HTTP-01 or DNS-01 self-check errors, rate limitsreferences/acme.md
failed calling webhook "webhook.cert-manager.io", x509 errors from the webhook, cainjectorreferences/webhook.md
Expired or not renewed, Renewing, a Certificate that reissues again and againreferences/renewal.md

Read the results

What the common findings mean (cert-manager 1.21):

  • Issuing certificate as Secret does not exist on a new Certificate is the normal first step, not the cause. Look one step down the chain: the CertificateRequest.
  • Referenced "Issuer" not found: issuer.cert-manager.io "<name>" not found (reason Pending, event IssuerNotFound): no Issuer of that name in the Certificate's namespace. issuerRef.kind defaults to Issuer, so a Certificate meant for a ClusterIssuer that leaves out kind: ClusterIssuer gets this message. Compare spec.issuerRef with the issuers that exist.
  • Referenced issuer does not have a Ready status condition (event IssuerNotReady): the issuer exists but is not Ready. Its own condition says why.
  • A CA Issuer with Error getting keypair for CA issuer: secrets "<name>" not found (reason ErrGetKeyPair): the Secret named in spec.ca.secretName does not exist in the issuer's namespace (for a ClusterIssuer, in the cluster resource namespace, by default cert-manager). Confirm with the user rather than reading Secrets.
  • Denied: an approval policy (for example approver-policy) refused the request; cert-manager's own approver only approves. Fix the policy or the request.
  • A failed request is retried with a backoff that starts at one hour, so a fixed cause can look unfixed for a while. Issuing False with "has failed to complete and will be retried" says so.
  • failed calling webhook "webhook.cert-manager.io" on create or update: the API server cannot reach cert-manager's webhook. Nothing in that namespace is wrong yet; see references/webhook.md.

State the cause in one sentence, then the evidence you saw (the condition reason and message, the issuerRef, the issuer's state), then the proposed fix.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. Patching a Certificate's issuerRef and scaling a cert-manager Deployment are reversible, so they go under "Ask first" and run only after the user says yes. Creating or changing Secrets, issuers and webhook configurations, and deleting resources, are never run by you: hand them to the user as proposed fixes and say why. Prefer fixing the source the resources are deployed from (manifest, Helm values, GitOps repository): the next sync would undo a patch. Write each undo with the values you found.

Point a Certificate at the ClusterIssuer it was meant to use:

Ask first: the agent runs this only after the user approves it.

bash
kubectl patch certificate my-app-tls -n my-namespace --type=merge -p '{"spec": {"issuerRef": {"kind": "ClusterIssuer"}}}'
# Undo: kubectl patch certificate my-app-tls -n my-namespace --type=json -p '[{"op": "remove", "path": "/spec/issuerRef/kind"}]'

cert-manager replaces the waiting CertificateRequest with a new one right after the change.

Bring back a webhook that was scaled to zero (write the undo with the replicas you found):

Ask first: the agent runs this only after the user approves it.

bash
kubectl scale deployment/cert-manager-webhook -n cert-manager --replicas=1
# Undo: kubectl scale deployment/cert-manager-webhook -n cert-manager --replicas=0

A CA Issuer whose key pair is missing needs that Secret created from the CA's certificate and key, in the issuer's namespace, under the name in spec.ca.secretName. Only the user has the CA files, and you never handle Secrets, so the user creates it with their usual tooling; or, if the issuer names the wrong Secret, the user fixes spec.ca.secretName in the source. cert-manager retries the issuer by itself once the Secret exists.

Sources

Checked against the cert-manager 1.21 documentation and source (v1.21.3):

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill K8s Cert Manager Troubleshooting?

Benotzt dës Skill, wann cert-manager e Certificat a Kubernetes net ausstellt oder erneiert: e Certificate bleift READY False, e CertificateRequest ass Pending, Denied oder Failed, en Issuer oder ClusterIssuer ass net Ready („Error getting keypair for CA issuer“), „Referenced \"Issuer\" not found“, ACME Orders oder Challenges hänke bei Pending (HTTP-01, DNS-01, Rate Limits), e Certificat ass ofgelaf oder gouf net erneiert, oder beim Uleeë vu Ressourcen kënnt „failed calling webhook \"webhook.cert-manager.io\"“. Ënnersicht de Problem mat kubectl get, describe, events a Logs a proposéiert Léis...

Firwat K8s Cert Manager Troubleshooting op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. K8s Cert Manager Troubleshooting besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech K8s Cert Manager Troubleshooting an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-cert-manager-troubleshooting an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen K8s Cert Manager Troubleshooting benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat K8s Cert Manager Troubleshooting benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir K8s Cert Manager Troubleshooting domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill K8s Cert Manager Troubleshooting gratis?

Jo. k8s-servant huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇