K8s Cert Manager Troubleshooting logo

K8s Cert Manager Troubleshooting

Organization
k8s-servant
k8s-cert-manager-troubleshooting

Use when cert-manager does not issue or renew a certificate in Kubernetes: a Certificate that stays READY False, a CertificateRequest that is Pending, Denied or Failed, an Issuer or ClusterIssuer that is not Ready ("Error getting keypair for CA issuer"), "Referenced \"Issuer\" not found", ACME Orders or Challenges stuck pending (HTTP-01, DNS-01, rate limits), a certificate that expired or did not renew, or "failed calling webhook \"webhook.cert-manager.io\"" when applying resources. Investigates with kubectl get, describe, events and logs, and proposes fixes. Reads first and asks before changing anything.

Overview

Publisherk8s-servant
Repositoryk8s-skills
Skill namek8s-cert-manager-troubleshooting
Stars
36
Forks
7
Bundled files
4
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by k8s-servant on GitHub. Read the source before you install it.

Installation

Install the K8s Cert Manager Troubleshooting AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-cert-manager-troubleshooting
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable K8s Cert Manager Troubleshooting in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads K8s Cert Manager Troubleshooting on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so K8s Cert Manager Troubleshooting is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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):

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the K8s Cert Manager Troubleshooting AI skill do?

Use when cert-manager does not issue or renew a certificate in Kubernetes: a Certificate that stays READY False, a CertificateRequest that is Pending, Denied or Failed, an Issuer or ClusterIssuer that is not Ready ("Error getting keypair for CA issuer"), "Referenced \"Issuer\" not found", ACME Orders or Challenges stuck pending (HTTP-01, DNS-01, rate limits), a certificate that expired or did not renew, or "failed calling webhook \"webhook.cert-manager.io\"" when applying resources. Investigates with kubectl get, describe, events and logs, and proposes fixes. Reads first and asks before cha...

Why use K8s Cert Manager Troubleshooting on TypingMind?

Because you install it once and use it with any model. K8s Cert Manager Troubleshooting is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install K8s Cert Manager Troubleshooting in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-cert-manager-troubleshooting. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use K8s Cert Manager Troubleshooting?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with K8s Cert Manager Troubleshooting?

As many as you like. As long as a model supports skills, you can use K8s Cert Manager Troubleshooting with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the K8s Cert Manager Troubleshooting AI skill free?

Yes. It is published on GitHub by k8s-servant under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇